Skip to main content

File system watchdog wrapper. Monitors a directory and logs events.

Project description

fs-watchdog

GitHub PyPI Version License Buy Me A Coffee

File system Watchdog wrapper (CLI). Monitors a directory and logs events.

Install

From PyPI:

pip install fs-watchdog

(Recommended for CLI tools)

pipx install fs-watchdog

Usage

fs-watchdog <DIRECTORY_PATH>

Examples:

Windows:

fs-watchdog "C:\Users\User\Documents"

macOS / Linux:

fs-watchdog /Users/user/Documents

You can also run as a module:

python -m file_watchdog <DIRECTORY_PATH>

Output

  • Events are logged to the console in the following format:

    [HEX_TIMESTAMP] event_type: path/to/file
    
  • Events are also saved to a log file named watchdog_events_<timestamp>.log.

  • The log file is created in the current working directory.

  • Log file entries use ISO timestamp format (UTC, Z suffix):

    [2024-04-02T12:34:56.789012Z] event_type: path/to/file
    

Finishing up

Press Ctrl+C to stop monitoring.

See also

My other small but snappy Python tools and automation,

  • github-stargazers – Python 3.13 – Github Stargazer Scraper.
  • img2pdf_helper – Simplify img2pdf configuration and usage.
  • fs-watchdog – Python 3.14 – file system Watchdog wrapper.

Tim Abdiukov

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

fs_watchdog-0.1.4.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fs_watchdog-0.1.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file fs_watchdog-0.1.4.tar.gz.

File metadata

  • Download URL: fs_watchdog-0.1.4.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for fs_watchdog-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2c9f7455ea03e4dde2d5376ab5c5a2aaf0c683a41474cdf2ea6d40c116f2f6a5
MD5 d72adf77122b70329ff2dbcad90e8aab
BLAKE2b-256 5661d1e3f8d4d8860049b59ce1c2587ba8ded5fceb54ef8a59ea77ac64caf2fc

See more details on using hashes here.

File details

Details for the file fs_watchdog-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: fs_watchdog-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for fs_watchdog-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c52d9bc63189ef840a903f2e2569793e331436776354dacde88108c08395084e
MD5 0e567f335fa6bb0005514163d910363a
BLAKE2b-256 87f64f31652d473d642d30c471b291799171275a4d394b8c12baf2e7cfd78c49

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