Staging: this is not the live site, pydocs.org.
File and Directory Access
stat
Symbols in stat
f
- filemode
- Convert a file's mode to a string of the form '-rwxrwxrwx'
s
- S_ENFMT
- System V file locking enforcement.
- S_IEXEC
- Unix V7 synonym for S_IXUSR.
- S_IFMT
- Return the portion of the file's mode that describes the file type.
- S_IMODE
- Return the portion of the file's mode that can be set by os.chmod().
- S_IREAD
- Unix V7 synonym for S_IRUSR.
- S_IROTH
- Others have read permission.
- S_IRWXO
- Mask for permissions for others (not in group).
- S_IRWXU
- Mask for file owner permissions.
- S_ISBLK
- Return True if mode is from a block special device file.
- S_ISCHR
- Return True if mode is from a character special device file.
- S_ISDIR
- Return True if mode is from a directory.
- S_ISDOOR
- Return True if mode is from a door.
- S_ISFIFO
- Return True if mode is from a FIFO (named pipe).
- S_ISLNK
- Return True if mode is from a symbolic link.
- S_ISPORT
- Return True if mode is from an event port.
- S_ISREG
- Return True if mode is from a regular file.
- S_ISSOCK
- Return True if mode is from a socket.
- S_ISWHT
- Return True if mode is from a whiteout.
- S_IWOTH
- Others have write permission.
- S_IXGRP
- Group has execute permission.
- S_IXOTH
- Others have execute permission.
- S_IXUSR
- Owner has execute permission.
- SF_DATALESS
- The file is a dataless object (macOS 10.15+)
- SF_RESTRICTED
- The file needs an entitlement to write to (macOS 10.13+)
- ST_CTIME
- The “ctime” as reported by the operating system.
- ST_DEV
- Device inode resides on.
- ST_SIZE
- Size in bytes of a plain file; amount of data waiting on some special files.
u
- UF_DATAVAULT
- The file needs an entitlement for reading or writing (macOS 10.13+)
- UF_HIDDEN
- The file should not be displayed in a GUI (macOS 10.5+).
- UF_OPAQUE
- The directory is opaque when viewed through a union stack.