Trivial FileState class used to watch for file changes.
Facility to track file state.
This is used to watch for size or modification time changes, or to notice when a file path no longer points at the same file.
FileState(path, do_lstat=False, missing_ok=False)
Return a signature object for a file state derived from os.stat
(or os.lstat if
do_lstat is true).
path may also be an int, in which case os.fstat is used.
This returns an object with mtime, size, dev and ino attributes
and can be compared for equality with other signatures.
missing_ok: return None if the target file is missing,
otherwise raise. Default False.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size cs.filestate-20181107.tar.gz (2.0 kB)||File type Source||Python version None||Upload date||Hashes View|