Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Files for cs.filestate, version 20181107
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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page