https://github.com/xprueg/folderize
Copy files from multiple sources into a single folder sorted by their modification date while preventing duplicate content.
https://github.com/xprueg/folderize
automation organize-files
Last synced: 5 months ago
JSON representation
Copy files from multiple sources into a single folder sorted by their modification date while preventing duplicate content.
- Host: GitHub
- URL: https://github.com/xprueg/folderize
- Owner: xprueg
- License: gpl-2.0
- Created: 2018-10-09T20:45:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-06T17:53:24.000Z (about 4 years ago)
- Last Synced: 2024-08-09T02:16:54.510Z (8 months ago)
- Topics: automation, organize-files
- Language: JavaScript
- Homepage:
- Size: 579 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - xprueg/folderize - Copy files from multiple sources into a single folder sorted by their modification date while preventing duplicate content. (JavaScript)
README
# folderize
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`).

## Synopsis
folderize [-c] --input PATH ... [--output PATH] [--locale LOCALE] [--exclude REGEX]## Options
--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/%e
which will result in2020/February/1
.
DayMonthYear
eDay1
mMonth, 2-digit02
YYear2020
dDay, 2-digit01
bMonth, shortFeb
yYear, 2-digit20
BMonth, longFebruary
1 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'.
## Tests
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]