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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51705069b6f901800aa3906c9fc5cc65171aea329355c13db81b8e04e041bfe3
|
|
| MD5 |
ac194e8e1b5b0b0561ec14e0eedab5b8
|
|
| BLAKE2b-256 |
a5bbdf6b5ec2f931feb0759cefcef653cc457ad3c5921669c24666a16532eda3
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eb21337232890b332fcc2d561094abf529a629656d317adfe6be352d359b12b
|
|
| MD5 |
bc4f8fa54929cc8d0b4785fdf5a2de64
|
|
| BLAKE2b-256 |
e894c6c84dc8672c73160262d5facdfc038cf176863962217e52526f33a9c930
|