Lines Matching refs:stat
44 import stat
2027 """Create a TarInfo object from the result of os.stat or equivalent
2056 # Use os.stat or os.lstat, depending on if symlinks shall be resolved.
2061 statres = os.stat(name)
2067 if stat.S_ISREG(stmd):
2081 elif stat.S_ISDIR(stmd):
2083 elif stat.S_ISFIFO(stmd):
2085 elif stat.S_ISLNK(stmd):
2088 elif stat.S_ISCHR(stmd):
2090 elif stat.S_ISBLK(stmd):
2140 _safe_print(stat.filemode(tarinfo.mode))
2514 mode |= stat.S_IFBLK
2516 mode |= stat.S_IFCHR