Back to index

python3.2  3.2.2
Functions | Variables
stat Namespace Reference

Functions

def S_IMODE
def S_IFMT
def S_ISDIR
def S_ISCHR
def S_ISBLK
def S_ISREG
def S_ISFIFO
def S_ISLNK
def S_ISSOCK

Variables

int ST_MODE = 0
int ST_INO = 1
int ST_DEV = 2
int ST_NLINK = 3
int ST_UID = 4
int ST_GID = 5
int ST_SIZE = 6
int ST_ATIME = 7
int ST_MTIME = 8
int ST_CTIME = 9
int S_IFDIR = 0
int S_IFCHR = 0
int S_IFBLK = 0
int S_IFREG = 0
int S_IFIFO = 0
int S_IFLNK = 0
int S_IFSOCK = 0
int S_ISUID = 0
int S_ISGID = 0
 S_ENFMT = S_ISGID
int S_ISVTX = 0
int S_IREAD = 0
int S_IWRITE = 0
int S_IEXEC = 0
int S_IRWXU = 0
int S_IRUSR = 0
int S_IWUSR = 0
int S_IXUSR = 0
int S_IRWXG = 0
int S_IRGRP = 0
int S_IWGRP = 0
int S_IXGRP = 0
int S_IRWXO = 0
int S_IROTH = 0
int S_IWOTH = 0
int S_IXOTH = 0
int UF_NODUMP = 0x00000001
int UF_IMMUTABLE = 0x00000002
int UF_APPEND = 0x00000004
int UF_OPAQUE = 0x00000008
int UF_NOUNLINK = 0x00000010
int UF_COMPRESSED = 0x00000020
int UF_HIDDEN = 0x00008000
int SF_ARCHIVED = 0x00010000
int SF_IMMUTABLE = 0x00020000
int SF_APPEND = 0x00040000
int SF_NOUNLINK = 0x00100000
int SF_SNAPSHOT = 0x00200000

Detailed Description

Constants/functions for interpreting results of os.stat() and os.lstat().

Suggested usage: from stat import *

Function Documentation

def stat.S_IFMT (   mode)

Definition at line 24 of file stat.py.

00024 
00025 def S_IFMT(mode):
00026     return mode & 0o170000
00027 
00028 # Constants used as S_IFMT() for various file types
00029 # (not all are implemented on all systems)

Here is the caller graph for this function:

def stat.S_IMODE (   mode)

Definition at line 21 of file stat.py.

00021 
00022 def S_IMODE(mode):
00023     return mode & 0o7777

Here is the caller graph for this function:

def stat.S_ISBLK (   mode)

Definition at line 46 of file stat.py.

00046 
00047 def S_ISBLK(mode):
00048     return S_IFMT(mode) == S_IFBLK

Here is the call graph for this function:

Here is the caller graph for this function:

def stat.S_ISCHR (   mode)

Definition at line 43 of file stat.py.

00043 
00044 def S_ISCHR(mode):
00045     return S_IFMT(mode) == S_IFCHR

Here is the call graph for this function:

Here is the caller graph for this function:

def stat.S_ISDIR (   mode)

Definition at line 40 of file stat.py.

00040 
00041 def S_ISDIR(mode):
00042     return S_IFMT(mode) == S_IFDIR

Here is the call graph for this function:

Here is the caller graph for this function:

def stat.S_ISFIFO (   mode)

Definition at line 52 of file stat.py.

00052 
00053 def S_ISFIFO(mode):
00054     return S_IFMT(mode) == S_IFIFO

Here is the call graph for this function:

Here is the caller graph for this function:

def stat.S_ISLNK (   mode)

Definition at line 55 of file stat.py.

00055 
00056 def S_ISLNK(mode):
00057     return S_IFMT(mode) == S_IFLNK

Here is the call graph for this function:

Here is the caller graph for this function:

def stat.S_ISREG (   mode)

Definition at line 49 of file stat.py.

00049 
00050 def S_ISREG(mode):
00051     return S_IFMT(mode) == S_IFREG

Here is the call graph for this function:

Here is the caller graph for this function:

def stat.S_ISSOCK (   mode)

Definition at line 58 of file stat.py.

00058 
00059 def S_ISSOCK(mode):
00060     return S_IFMT(mode) == S_IFSOCK
00061 
00062 # Names for permission bits

Here is the call graph for this function:


Variable Documentation

Definition at line 65 of file stat.py.

Definition at line 69 of file stat.py.

Definition at line 32 of file stat.py.

Definition at line 31 of file stat.py.

Definition at line 30 of file stat.py.

Definition at line 34 of file stat.py.

Definition at line 35 of file stat.py.

Definition at line 33 of file stat.py.

Definition at line 36 of file stat.py.

Definition at line 67 of file stat.py.

Definition at line 75 of file stat.py.

Definition at line 79 of file stat.py.

Definition at line 71 of file stat.py.

Definition at line 74 of file stat.py.

Definition at line 78 of file stat.py.

Definition at line 70 of file stat.py.

Definition at line 64 of file stat.py.

Definition at line 63 of file stat.py.

Definition at line 66 of file stat.py.

Definition at line 76 of file stat.py.

Definition at line 80 of file stat.py.

Definition at line 68 of file stat.py.

Definition at line 72 of file stat.py.

Definition at line 77 of file stat.py.

Definition at line 81 of file stat.py.

Definition at line 73 of file stat.py.

int stat.SF_APPEND = 0x00040000

Definition at line 94 of file stat.py.

int stat.SF_ARCHIVED = 0x00010000

Definition at line 92 of file stat.py.

int stat.SF_IMMUTABLE = 0x00020000

Definition at line 93 of file stat.py.

int stat.SF_NOUNLINK = 0x00100000

Definition at line 95 of file stat.py.

int stat.SF_SNAPSHOT = 0x00200000

Definition at line 96 of file stat.py.

Definition at line 15 of file stat.py.

Definition at line 17 of file stat.py.

Definition at line 10 of file stat.py.

Definition at line 13 of file stat.py.

Definition at line 9 of file stat.py.

Definition at line 8 of file stat.py.

Definition at line 16 of file stat.py.

Definition at line 11 of file stat.py.

Definition at line 14 of file stat.py.

Definition at line 12 of file stat.py.

int stat.UF_APPEND = 0x00000004

Definition at line 87 of file stat.py.

int stat.UF_COMPRESSED = 0x00000020

Definition at line 90 of file stat.py.

int stat.UF_HIDDEN = 0x00008000

Definition at line 91 of file stat.py.

int stat.UF_IMMUTABLE = 0x00000002

Definition at line 86 of file stat.py.

int stat.UF_NODUMP = 0x00000001

Definition at line 85 of file stat.py.

int stat.UF_NOUNLINK = 0x00000010

Definition at line 89 of file stat.py.

int stat.UF_OPAQUE = 0x00000008

Definition at line 88 of file stat.py.