The folderize utility copies files from multiple sources into a single destination folder. In the destination folder the files are sorted in a folder tree created by their last modification time (mtime).
folderize [-c] --input PATH ... [--output PATH] [--locale LOCALE] [--exclude REGEX]
--input, -i PATH ...- The input folder(s).
--output, -o PATH- The destination folder. The current folder (./) is used as default.
--dirstruct, -d STRING- Structure that should be constructed in the output directory. Every slash will create a new subdirectory. The default is
%Y/%B/%ewhich will result in2020/February/1.
Day Month Year e Day 1m Month, 2-digit 02Y Year 2020d Day, 2-digit 01b Month, short Feby Year, 2-digit 20B Month, long February1 February 2020
--locale, -l LOCALE- The locale to be used for folder creation in the destination folder. Locales other than english need at least node v.13 or node build with full-icu. The default is en−US.
--exclude, -e REGEX- The files and/or folders names which shall not be copied. The regex must not be enclosed by slashes.
--cache, -c- Enables the creation/use of the cache file `folderize.cache'.
There is currently an integration test that should be run with the same options, excluding input and output, like you would intend to run folderize itself.
npx jasmine -- [-c] [--locale LOCALE] [--exclude REGEX]
