Python stat Functions

EditRocket provides the following information on stat functions in the Python source code builder.

S_IFMT(mode) - Return the portion of the file's mode that describes the file type (used by the S_IS*() functions above).

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

S_ISBLK(mode) - Return non-zero if the mode is from a block special device file.

S_ISCHR(mode) - Return non-zero if the mode is from a character special device file.

S_ISDIR(mode) - Return non-zero if the mode is from a directory.

S_ISFIFO(mode) - Return non-zero if the mode is from a FIFO (named pipe).

S_ISLNK(mode) - Return non-zero if the mode is from a symbolic link.

S_ISREG(mode) - Return non-zero if the mode is from a regular file.

S_ISSOCK(mode) - Return non-zero if the mode is from a socket.