U e5dm @sLdZdZdZdZdZdZdZdZdZd Z d Z d d Z d dZ dZ dZdZdZdZdZdZdZdZdZddZddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Z d*Z!d+Z"e"Z#d,Z$d-Z%d.Z&d/Z'd0Z(d-Z)d.Z*d/Z+d1Z,d2Z-d3Z.d Z/dZ0dZ1dZ2dZ3dZ4dZ5dZ6d Z7d3Z8d2Z9dZ:d4Z;d5Zd8Z?ed9fed:fed;fedfed?ffe)d@ffe*dAffe+e!Bd:fe!dBfe+dCffe-d@ffe.dAffe/e"Bd:fe"dBfe/dCffe1d@ffe2dAffe3e$BdDfe$dEfe3dCfff Z@dFdGZAd2ZBd*ZCd/ZDd3ZEdZFdZGdZHd.ZIdZJd5ZKdZLdZMd+ZNd,ZOdZPd-ZQd4ZRz ddHlSTWneTk rFYnXdIS)JzoConstants/functions for interpreting results of os.stat() and os.lstat(). Suggested usage: from stat import *  cCs|d@S)zMReturn the portion of the file's mode that can be set by os.chmod(). imoder r /usr/lib64/python3.8/stat.pyS_IMODEsrcCs|d@S)zLReturn the portion of the file's mode that describes the file type. ir r r r rS_IFMTsri@i i`iiiicCs t|tkS)z(Return True if mode is from a directory.)rS_IFDIRr r r rS_ISDIR2srcCs t|tkS)zsrcCs t|tkS)z0Return True if mode is from a FIFO (named pipe).)rS_IFIFOr r r rS_ISFIFOBsrcCs t|tkS)z,Return True if mode is from a symbolic link.)rS_IFLNKr r r rS_ISLNKFsrcCs t|tkS)z%Return True if mode is from a socket.)rS_IFSOCKr r r rS_ISSOCKJsrcCsdS)z#Return True if mode is from a door.Fr r r r rS_ISDOORNsrcCsdS)z*Return True if mode is from an event port.Fr r r r rS_ISPORTRsr cCsdS)z'Return True if mode is from a whiteout.Fr r r r rS_ISWHTVsr!iii@i8 iiiii ls-bdcprwSxtTcCsJg}tD]6}|D]"\}}||@|kr||qq|dqd|S)z;Convert a file's mode to a string of the form '-rwxrwxrwx'.r*)_filemode_tableappendjoin)r Zpermtablebitcharr r rfilemodes    r<)*N)U__doc__ST_MODEST_INOST_DEVST_NLINKST_UIDST_GIDST_SIZEST_ATIMEST_MTIMEST_CTIMErrrrrrrrrS_IFDOORS_IFPORTS_IFWHTrrrrrrrrr r!S_ISUIDS_ISGIDS_ENFMTS_ISVTXS_IREADS_IWRITES_IEXECS_IRWXUS_IRUSRS_IWUSRS_IXUSRS_IRWXGS_IRGRPS_IWGRPS_IXGRPS_IRWXOS_IROTHS_IWOTHS_IXOTH UF_NODUMP UF_IMMUTABLE UF_APPEND UF_OPAQUE UF_NOUNLINK UF_COMPRESSED UF_HIDDEN SF_ARCHIVED SF_IMMUTABLE SF_APPEND SF_NOUNLINK SF_SNAPSHOTr6r<FILE_ATTRIBUTE_ARCHIVEFILE_ATTRIBUTE_COMPRESSEDFILE_ATTRIBUTE_DEVICEFILE_ATTRIBUTE_DIRECTORYFILE_ATTRIBUTE_ENCRYPTEDFILE_ATTRIBUTE_HIDDENFILE_ATTRIBUTE_INTEGRITY_STREAMFILE_ATTRIBUTE_NORMAL"FILE_ATTRIBUTE_NOT_CONTENT_INDEXEDFILE_ATTRIBUTE_NO_SCRUB_DATAFILE_ATTRIBUTE_OFFLINEFILE_ATTRIBUTE_READONLYFILE_ATTRIBUTE_REPARSE_POINTFILE_ATTRIBUTE_SPARSE_FILEFILE_ATTRIBUTE_SYSTEMFILE_ATTRIBUTE_TEMPORARYFILE_ATTRIBUTE_VIRTUAL_stat ImportErrorr r r rs