Zip and destroy
Scans recursively for all files inside a given folder with a specific extension, zips them, and deletes originals.
NOTE: This project is the NodeJS-based solution. For an executable standalone app that runs on Windows, Linux and macOS, try JJpack.
-
Make sure you have NodeJS installed. If you don't, go get it.
-
Copy the whole folder of this project to the location you want to be processed, e.g., if you want
~/user/projects
to be processed copy this folder so that it is placed in~/user/projects/jjscript
. -
Open a console, go inside the
jjscript
folder, and enter:
npm install
By default, files with dwg
extension are processed, and original files get deleted after processing.
This can be changed in index.js
file in SETUP
section at the top:
extension
holds the string for the file extension. NOTE: case is sensitive, meaning thatDWG
files will NOT be processed, onlydwg
files.deleteAfter
can be set tofalse
if original files are to be kept.
To run, open a console, go inside the jjscript
folder, and enter:
npm start
Results will be logged to the console.