💾 Archived View for tris.fyi › pydoc › _stat captured on 2023-04-26 at 13:18:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-01-08)

-=-=-=-=-=-=-

Back to module index

Go to module by name

_stat

S_IFMT_: file type bits
S_IFDIR: directory
S_IFCHR: character device
S_IFBLK: block device
S_IFREG: regular file
S_IFIFO: fifo (named pipe)
S_IFLNK: symbolic link
S_IFSOCK: socket file
S_IFDOOR: door
S_IFPORT: event port
S_IFWHT: whiteout

S_ISUID: set UID bit
S_ISGID: set GID bit
S_ENFMT: file locking enforcement
S_ISVTX: sticky bit
S_IREAD: Unix V7 synonym for S_IRUSR
S_IWRITE: Unix V7 synonym for S_IWUSR
S_IEXEC: Unix V7 synonym for S_IXUSR
S_IRWXU: mask for owner permissions
S_IRUSR: read by owner
S_IWUSR: write by owner
S_IXUSR: execute by owner
S_IRWXG: mask for group permissions
S_IRGRP: read by group
S_IWGRP: write by group
S_IXGRP: execute by group
S_IRWXO: mask for others (not in group) permissions
S_IROTH: read by others
S_IWOTH: write by others
S_IXOTH: execute by others

UF_NODUMP: do not dump file
UF_IMMUTABLE: file may not be changed
UF_APPEND: file may only be appended to
UF_OPAQUE: directory is opaque when viewed through a union stack
UF_NOUNLINK: file may not be renamed or deleted
UF_COMPRESSED: OS X: file is hfs-compressed
UF_HIDDEN: OS X: file should not be displayed
SF_ARCHIVED: file may be archived
SF_IMMUTABLE: file may not be changed
SF_APPEND: file may only be appended to
SF_NOUNLINK: file may not be renamed or deleted
SF_SNAPSHOT: file is a snapshot file

ST_MODE
ST_INO
ST_DEV
ST_NLINK
ST_UID
ST_GID
ST_SIZE
ST_ATIME
ST_MTIME
ST_CTIME

FILE_ATTRIBUTE_*: Windows file attribute constants
                   (only present on Windows)

Functions

S_IFMT

S_IFMT(...)

  Return the portion of the file's mode that describes the file type.

S_IMODE

S_IMODE(...)

  Return the portion of the file's mode that can be set by os.chmod().

S_ISBLK

S_ISBLK(...)

  S_ISBLK(mode) -> bool

  Return True if mode is from a block special device file.

S_ISCHR

S_ISCHR(...)

  S_ISCHR(mode) -> bool

  Return True if mode is from a character special device file.

S_ISDIR

S_ISDIR(...)

  S_ISDIR(mode) -> bool

  Return True if mode is from a directory.

S_ISDOOR

S_ISDOOR(...)

  S_ISDOOR(mode) -> bool

  Return True if mode is from a door.

S_ISFIFO

S_ISFIFO(...)

  S_ISFIFO(mode) -> bool

  Return True if mode is from a FIFO (named pipe).

S_ISLNK

S_ISLNK(...)

  S_ISLNK(mode) -> bool

  Return True if mode is from a symbolic link.

S_ISPORT

S_ISPORT(...)

  S_ISPORT(mode) -> bool

  Return True if mode is from an event port.

S_ISREG

S_ISREG(...)

  S_ISREG(mode) -> bool

  Return True if mode is from a regular file.

S_ISSOCK

S_ISSOCK(...)

  S_ISSOCK(mode) -> bool

  Return True if mode is from a socket.

S_ISWHT

S_ISWHT(...)

  S_ISWHT(mode) -> bool

  Return True if mode is from a whiteout.

filemode

filemode(...)

  Convert a file's mode to a string of the form '-rwxrwxrwx'

Other members

SF_APPEND = 262144
SF_ARCHIVED = 65536
SF_IMMUTABLE = 131072
SF_NOUNLINK = 1048576
SF_SNAPSHOT = 2097152
ST_ATIME = 7
ST_CTIME = 9
ST_DEV = 2
ST_GID = 5
ST_INO = 1
ST_MODE = 0
ST_MTIME = 8
ST_NLINK = 3
ST_SIZE = 6
ST_UID = 4
S_ENFMT = 1024
S_IEXEC = 64
S_IFBLK = 24576
S_IFCHR = 8192
S_IFDIR = 16384
S_IFDOOR = 0
S_IFIFO = 4096
S_IFLNK = 40960
S_IFPORT = 0
S_IFREG = 32768
S_IFSOCK = 49152
S_IFWHT = 0
S_IREAD = 256
S_IRGRP = 32
S_IROTH = 4
S_IRUSR = 256
S_IRWXG = 56
S_IRWXO = 7
S_IRWXU = 448
S_ISGID = 1024
S_ISUID = 2048
S_ISVTX = 512
S_IWGRP = 16
S_IWOTH = 2
S_IWRITE = 128
S_IWUSR = 128
S_IXGRP = 8
S_IXOTH = 1
S_IXUSR = 64
UF_APPEND = 4
UF_COMPRESSED = 32
UF_HIDDEN = 32768
UF_IMMUTABLE = 2
UF_NODUMP = 1
UF_NOUNLINK = 16
UF_OPAQUE = 8