An open API service indexing awesome lists of open source software.

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

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.