Lines Matching refs:stat
9 import stat
206 return os.path.samestat(src.stat(), os.stat(dst))
221 return fn.stat() if isinstance(fn, os.DirEntry) else os.stat(fn)
247 if stat.S_ISFIFO(st.st_mode):
309 chmod_func(dst, stat.S_IMODE(st.st_mode))
372 st = src.stat(follow_symlinks=follow)
374 st = lookup("stat")(src, follow_symlinks=follow)
375 mode = stat.S_IMODE(st.st_mode)
474 lstat = srcentry.stat(follow_symlinks=False)
475 if lstat.st_reparse_tag == stat.IO_REPARSE_TAG_MOUNT_POINT:
572 st = entry.stat(follow_symlinks=False)
573 return (stat.S_ISDIR(st.st_mode) and not
574 (st.st_file_attributes & stat.FILE_ATTRIBUTE_REPARSE_POINT
575 and st.st_reparse_tag == stat.IO_REPARSE_TAG_MOUNT_POINT))
582 return (stat.S_ISLNK(st.st_mode) or
583 (st.st_file_attributes & stat.FILE_ATTRIBUTE_REPARSE_POINT
584 and st.st_reparse_tag == stat.IO_REPARSE_TAG_MOUNT_POINT))
646 orig_st = entry.stat(follow_symlinks=False)
647 is_dir = stat.S_ISDIR(orig_st.st_mode)
671 # os.scandir or stat.S_ISDIR above.
685 _use_fd_functions = ({os.open, os.stat, os.unlink, os.rmdir} <=
688 os.stat in os.supports_follow_symlinks)
860 immutable_states = [stat.UF_IMMUTABLE, stat.SF_IMMUTABLE]