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.2.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.2.tar.gz.
File metadata
- Download URL: dirdog-0.0.2.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 |
ef6406e110c289f1779770c85c5ef736306731a483a8f6f4d980412e24bcf0e7
|
|
| MD5 |
b78959551d9b0f45899c6a6923d4f6f4
|
|
| BLAKE2b-256 |
c2b7312066bc54115a23de8ab3f71631f2081cb6a211250fa021a2ae1b49a6aa
|
File details
Details for the file dirdog-0.0.2-py3-none-any.whl.
File metadata
- Download URL: dirdog-0.0.2-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 |
509be5e6daf1f057a2d4058b328966f0e9780b66d11f5bb691353cf58ce5c7d6
|
|
| MD5 |
c923390f07723a1737ca800dddfd2ce4
|
|
| BLAKE2b-256 |
6895fd3edabe0f9b1cd50b3898f62f3cb80385e8c7b8c7db2dd72c01d239896a
|