1
0
Fork
You've already forked dir-timestamp
0
No description
  • JavaScript 100%
Find a file
2023年08月13日 11:18:04 -04:00
dir-timestamp.js tidy 2023年08月13日 11:18:04 -04:00
LICENSE initial commit 2022年07月20日 08:04:59 -04:00
package.json initial version 2022年07月20日 08:38:57 -04:00
README.md add brief readme 2022年07月20日 08:55:05 -04:00

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 <directory>...

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