Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conduitry/dir-timestamp
https://github.com/conduitry/dir-timestamp
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/conduitry/dir-timestamp
- Owner: Conduitry
- License: mit
- Created: 2022-07-20T12:08:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T13:00:08.000Z (over 2 years ago)
- Last Synced: 2023-05-10T12:33:31.414Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dir-timestamp
A simple utility to recursively set the mtime on trees of directories to the latest mtime of any of the files in them. For use by weird anal people before archiving a bunch of files and distributing them.
# Usage
```
dir-timestamp.js ...
```Pass the paths to one or more directories. Each one will recursively have all of its subdirectories' mtimes updated.
Finding something that is neither a file or a directory will cause that top-level directory to be aborted. Finding an empty subdirectory will also cause that top-level directory to be aborted.
Aborting one top-level directory will not prevent other top-level directories from being processed.
## License
[MIT](LICENSE)