https://github.com/squidkid-deluxe/file-hasher
Checks if files have changed, and if so applies a given command to them
https://github.com/squidkid-deluxe/file-hasher
command-line-arguments hashing python3
Last synced: about 1 month ago
JSON representation
Checks if files have changed, and if so applies a given command to them
- Host: GitHub
- URL: https://github.com/squidkid-deluxe/file-hasher
- Owner: squidKid-deluxe
- Created: 2021-03-27T20:33:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-27T22:31:51.000Z (over 5 years ago)
- Last Synced: 2025-03-04T06:44:14.241Z (over 1 year ago)
- Topics: command-line-arguments, hashing, python3
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# file_hasher.py
`python3 file_hasher.py [command] [extension]`
File hasher takes command-line arguments, for example, to run `pylint ` on all `*.py` files in the current directory, run
`python3 file_hasher.py pylint py`
The script concurrently checks if any `*.[extension]` files in the specified directory have changed, and if so, runs the `[command]` on each one individually.