Skip to main content

Simplest Watchdog for a given directory

Project description

DirDog

Simplest Watchdog for a given directory. Allows to register callbacks for newly created, deleted, or modified files.

Usage

from dirdog import DirDog


def new_file_callback(file_name):
    print(file_name + " created!")


path_of_directory_to_monitor = "."
d = DirDog(path_of_directory_to_monitor)
d.on_new_file(new_file_callback)
d.join()

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

dirdog-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

dirdog-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file dirdog-0.0.1.tar.gz.

File metadata

  • Download URL: dirdog-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for dirdog-0.0.1.tar.gz
Algorithm Hash digest
SHA256 51705069b6f901800aa3906c9fc5cc65171aea329355c13db81b8e04e041bfe3
MD5 ac194e8e1b5b0b0561ec14e0eedab5b8
BLAKE2b-256 a5bbdf6b5ec2f931feb0759cefcef653cc457ad3c5921669c24666a16532eda3

See more details on using hashes here.

File details

Details for the file dirdog-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dirdog-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for dirdog-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb21337232890b332fcc2d561094abf529a629656d317adfe6be352d359b12b
MD5 bc4f8fa54929cc8d0b4785fdf5a2de64
BLAKE2b-256 e894c6c84dc8672c73160262d5facdfc038cf176863962217e52526f33a9c930

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