module
stat
Implements the stat module.
Aliases
-
S_IFMT = 61440
: Bits that determine the file type. -
S_IFDIR = 16384
: Bits that determine the directory. -
S_IFCHR = 8192
: Bits that determine the char device. -
S_IFBLK = 24576
: Bits that determine the block device. -
S_IFREG = 32768
: Bits that determine the regular file. -
S_IFIFO = 4096
: Bits that determine the fifo. -
S_IFLNK = 40960
: Bits that determine the symlink. -
S_IFSOCK = 49152
: Bits that determine the socket.
Functions
-
S_ISLNK
: Returns True if the mode is a symlink. -
S_ISREG
: Returns True if the mode is a regular file. -
S_ISDIR
: Returns True if the mode is a directory. -
S_ISCHR
: Returns True if the mode is a character device. -
S_ISBLK
: Returns True if the mode is a block device. -
S_ISFIFO
: Returns True if the mode is a fifo. -
S_ISSOCK
: Returns True if the mode is a socket.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
😔 What went wrong?