1.2.24 • Published 2 years ago
@do-while-for-each/fs v1.2.24
It may be convenient to install the package globally:
npm i -g @do-while-for-each/fsUtils
copy,movecleanDir,cleanDirs,ensureDirExists,getSubdirs,mkdirCyclical,traverseDirremoveForce,removeSyncgetStats,isDirectory,chmodCyclicalFileProcess,FileJson
As Executable
dwfeFs cmd src [dst] [--dirPaths] [--fileNames] [--noPrintParams] [--noConfirm] [--hideLog]cmd–rmForce|cp|mv|cleanDir|cleanDirs;src,dst– absolute or relative path;--dirPaths,--fileNames– list of directories(file names). The list must be enclosed in quotation marks, and the symbol;should be used as the separator of the items, for example:--dirPaths=";/Users/z;src/tests;app/*";--dirPaths– if there is a path ending in '*' in the--dirPathslist. Then only the first-level subdirectories relative to this path will be included in the resulting list.
Examples
./
apps/
account
admin
packages/
api
client-auth
server/
regress
generatorThe command launched along the path ./:
dwfeFs cleanDirs --dirPaths=";apps/*;server/*" --fileNames="dist;node_modules;package-lock.json"will remove from directories:././apps/account./apps/admin./server/regress./server/generator
files with the following names: dist, node_modules, package-lock.json.
TODO
- dereference symlinks
- preserveTimestamps When true timestamps from src will be preserved
1.2.24
2 years ago
1.2.23
3 years ago
1.2.22
3 years ago
1.2.19
4 years ago
1.2.20
4 years ago
1.2.21
4 years ago
1.2.18
4 years ago
1.2.17
4 years ago
1.2.16
4 years ago
1.2.15
4 years ago
1.2.14
4 years ago
1.2.13
4 years ago
1.2.12
4 years ago
1.2.11
4 years ago
1.2.10
4 years ago
1.2.9
4 years ago
1.2.8
4 years ago
1.2.7
4 years ago
1.2.6
4 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago