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 details)

Uploaded Source

File details

Details for the file cs.filestate-20181107.tar.gz.

File metadata

  • Download URL: cs.filestate-20181107.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6

File hashes

Hashes for cs.filestate-20181107.tar.gz
Algorithm Hash digest
SHA256 f63b491ccb856f2b5b9c246e4667e7b222b742ad9be08493de406ee31d642b80
MD5 42ae423eabbba8d28aa500d9e8d4f401
BLAKE2b-256 feac51d0400b7dbd3f70393885e5926798dd4b7331cf0cf18290a13a16372359

See more details on using hashes here.

Supported by

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