10.3. stat — Interpreting stat() results — Python v2.7.6 documentation

index modules | next | previous | Python » 2.7.6 Documentation » The Python Standard Library » 10. File and Directory Access » stat stat() ¶ Source code: Lib/stat.py The stat module defines constants and functions for interpreting the results of os.stat() , os.fstat() and os.lstat() (if they exist). For complete details about the stat() , fstat() and lstat() calls, consult the documentation for your system. The stat module defines the following functions to test for specific file types: stat. S_ISDIR ( mode ) ¶ Return non-zero if the mode is from a directory. stat. S_ISCHR ( mode ) ¶ Return non-zero if the mode is from a character special device file. stat. S_ISBLK ( mode ) ¶ Return non-zero if the mode is from a block special device file. stat. S_ISREG ( mode ) ¶ Return non-zero if the mode is from a regular file. stat. S_ISFIFO ( mode ) ¶...

Linked on 2014-03-21 01:35:26 | Similar Links