Skip to main content

Trivial FileState class used to watch for file changes.

Project description

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.

Function 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs.filestate-20181107.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page