Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
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 = 0040000
 
int S_IFCHR = 0020000
 
int S_IFBLK = 0060000
 
int S_IFREG = 0100000
 
int S_IFIFO = 0010000
 
int S_IFLNK = 0120000
 
int S_IFSOCK = 0140000
 
int S_ISUID = 04000
 
int S_ISGID = 02000
 
 S_ENFMT = S_ISGID
 
int S_ISVTX = 01000
 
int S_IREAD = 00400
 
int S_IWRITE = 00200
 
int S_IEXEC = 00100
 
int S_IRWXU = 00700
 
int S_IRUSR = 00400
 
int S_IWUSR = 00200
 
int S_IXUSR = 00100
 
int S_IRWXG = 00070
 
int S_IRGRP = 00040
 
int S_IWGRP = 00020
 
int S_IXGRP = 00010
 
int S_IRWXO = 00007
 
int S_IROTH = 00004
 
int S_IWOTH = 00002
 
int S_IXOTH = 00001
 
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)
def stat.S_IMODE (   mode)
def stat.S_ISBLK (   mode)
def stat.S_ISCHR (   mode)
def stat.S_ISDIR (   mode)
def stat.S_ISFIFO (   mode)
def stat.S_ISLNK (   mode)
def stat.S_ISREG (   mode)
def stat.S_ISSOCK (   mode)

Variable Documentation

stat.S_ENFMT = S_ISGID
int stat.S_IEXEC = 00100
int stat.S_IFBLK = 0060000
int stat.S_IFCHR = 0020000
int stat.S_IFDIR = 0040000
int stat.S_IFIFO = 0010000
int stat.S_IFLNK = 0120000
int stat.S_IFREG = 0100000
int stat.S_IFSOCK = 0140000
int stat.S_IREAD = 00400
int stat.S_IRGRP = 00040
int stat.S_IROTH = 00004
int stat.S_IRUSR = 00400
int stat.S_IRWXG = 00070
int stat.S_IRWXO = 00007
int stat.S_IRWXU = 00700
int stat.S_ISGID = 02000
int stat.S_ISUID = 04000
int stat.S_ISVTX = 01000
int stat.S_IWGRP = 00020
int stat.S_IWOTH = 00002
int stat.S_IWRITE = 00200
int stat.S_IWUSR = 00200
int stat.S_IXGRP = 00010
int stat.S_IXOTH = 00001
int stat.S_IXUSR = 00100
int stat.SF_APPEND = 0x00040000
int stat.SF_ARCHIVED = 0x00010000
int stat.SF_IMMUTABLE = 0x00020000
int stat.SF_NOUNLINK = 0x00100000
int stat.SF_SNAPSHOT = 0x00200000
int stat.ST_ATIME = 7
int stat.ST_CTIME = 9
int stat.ST_DEV = 2
int stat.ST_GID = 5
int stat.ST_INO = 1
int stat.ST_MODE = 0
int stat.ST_MTIME = 8
int stat.ST_NLINK = 3
int stat.ST_SIZE = 6
int stat.ST_UID = 4
int stat.UF_APPEND = 0x00000004
int stat.UF_COMPRESSED = 0x00000020
int stat.UF_HIDDEN = 0x00008000
int stat.UF_IMMUTABLE = 0x00000002
int stat.UF_NODUMP = 0x00000001
int stat.UF_NOUNLINK = 0x00000010
int stat.UF_OPAQUE = 0x00000008

Copyright 2014 Google Inc. All rights reserved.