1.1.0 • Published 3 years ago

collect-fs v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Merge multiple directories in one. Precedence is based on arguments.

Usage

collect-fs --source=/path/to/one/directory /path/to/another/directory --target=/path/to/target/directory

Available CLI Options

optiondescription
--helpPrint help
--versionPrint current version
--source, -sSpace-separated list of directories to merge
--target, -tTarget directory

Node Usage

import collectFs from "collect-fs";

collectFs(
  ["/path/to/one/directory", "/path/to/another/directory"],
  "/path/to/target/directory"
);

Caveats

  1. As of now empty directories are not copied over.

Contributing

Issues and PRs are welcome.