{
    "mode": "pydoc",
    "parameter": "_stat",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/_stat/json",
    "generated": "2026-06-02T15:02:27Z",
    "sections": {
        "NAME": {
            "content": "stat\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "SIFMT: file type bits\nSIFDIR: directory\nSIFCHR: character device\nSIFBLK: block device\nSIFREG: regular file\nSIFIFO: fifo (named pipe)\nSIFLNK: symbolic link\nSIFSOCK: socket file\nSIFDOOR: door\nSIFPORT: event port\nSIFWHT: whiteout\n\nSISUID: set UID bit\nSISGID: set GID bit\nSENFMT: file locking enforcement\nSISVTX: sticky bit\nSIREAD: Unix V7 synonym for SIRUSR\nSIWRITE: Unix V7 synonym for SIWUSR\nSIEXEC: Unix V7 synonym for SIXUSR\nSIRWXU: mask for owner permissions\nSIRUSR: read by owner\nSIWUSR: write by owner\nSIXUSR: execute by owner\nSIRWXG: mask for group permissions\nSIRGRP: read by group\nSIWGRP: write by group\nSIXGRP: execute by group\nSIRWXO: mask for others (not in group) permissions\nSIROTH: read by others\nSIWOTH: write by others\nSIXOTH: execute by others\n\nUFNODUMP: do not dump file\nUFIMMUTABLE: file may not be changed\nUFAPPEND: file may only be appended to\nUFOPAQUE: directory is opaque when viewed through a union stack\nUFNOUNLINK: file may not be renamed or deleted\nUFCOMPRESSED: OS X: file is hfs-compressed\nUFHIDDEN: OS X: file should not be displayed\nSFARCHIVED: file may be archived\nSFIMMUTABLE: file may not be changed\nSFAPPEND: file may only be appended to\nSFNOUNLINK: file may not be renamed or deleted\nSFSNAPSHOT: file is a snapshot file\n\nSTMODE\nSTINO\nSTDEV\nSTNLINK\nSTUID\nSTGID\nSTSIZE\nSTATIME\nSTMTIME\nSTCTIME\n\nFILEATTRIBUTE*: Windows file attribute constants\n(only present on Windows)\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "SIFMT(...)\nReturn the portion of the file's mode that describes the file type.\n\nSIMODE(...)\nReturn the portion of the file's mode that can be set by os.chmod().\n\nSISBLK(...)\nSISBLK(mode) -> bool\n\nReturn True if mode is from a block special device file.\n\nSISCHR(...)\nSISCHR(mode) -> bool\n\nReturn True if mode is from a character special device file.\n\nSISDIR(...)\nSISDIR(mode) -> bool\n\nReturn True if mode is from a directory.\n\nSISDOOR(...)\nSISDOOR(mode) -> bool\n\nReturn True if mode is from a door.\n\nSISFIFO(...)\nSISFIFO(mode) -> bool\n\nReturn True if mode is from a FIFO (named pipe).\n\nSISLNK(...)\nSISLNK(mode) -> bool\n\nReturn True if mode is from a symbolic link.\n\nSISPORT(...)\nSISPORT(mode) -> bool\n\nReturn True if mode is from an event port.\n\nSISREG(...)\nSISREG(mode) -> bool\n\nReturn True if mode is from a regular file.\n\nSISSOCK(...)\nSISSOCK(mode) -> bool\n\nReturn True if mode is from a socket.\n\nSISWHT(...)\nSISWHT(mode) -> bool\n\nReturn True if mode is from a whiteout.\n",
            "subsections": [
                {
                    "name": "filemode",
                    "content": "Convert a file's mode to a string of the form '-rwxrwxrwx'\n"
                }
            ]
        },
        "DATA": {
            "content": "SFAPPEND = 262144\nSFARCHIVED = 65536\nSFIMMUTABLE = 131072\nSFNOUNLINK = 1048576\nSFSNAPSHOT = 2097152\nSTATIME = 7\nSTCTIME = 9\nSTDEV = 2\nSTGID = 5\nSTINO = 1\nSTMODE = 0\nSTMTIME = 8\nSTNLINK = 3\nSTSIZE = 6\nSTUID = 4\nSENFMT = 1024\nSIEXEC = 64\nSIFBLK = 24576\nSIFCHR = 8192\nSIFDIR = 16384\nSIFDOOR = 0\nSIFIFO = 4096\nSIFLNK = 40960\nSIFPORT = 0\nSIFREG = 32768\nSIFSOCK = 49152\nSIFWHT = 0\nSIREAD = 256\nSIRGRP = 32\nSIROTH = 4\nSIRUSR = 256\nSIRWXG = 56\nSIRWXO = 7\nSIRWXU = 448\nSISGID = 1024\nSISUID = 2048\nSISVTX = 512\nSIWGRP = 16\nSIWOTH = 2\nSIWRITE = 128\nSIWUSR = 128\nSIXGRP = 8\nSIXOTH = 1\nSIXUSR = 64\nUFAPPEND = 4\nUFCOMPRESSED = 32\nUFHIDDEN = 32768\nUFIMMUTABLE = 2\nUFNODUMP = 1\nUFNOUNLINK = 16\nUFOPAQUE = 8\n",
            "subsections": []
        },
        "FILE": {
            "content": "(built-in)\n\n",
            "subsections": []
        }
    },
    "summary": "stat",
    "flags": [],
    "examples": [],
    "see_also": []
}