nfriedly / node-bestzip

Provides a `bestzip` command that uses the system `zip` if avaliable, and a Node.js implimentation otherwise.
MIT License
80 stars 16 forks source link

Delete source directory after zipping CLI #37

Open KonradLinkowski opened 4 years ago

KonradLinkowski commented 4 years ago

Is there any way to delete source dir after zipping? Or maybe it could be added.

nfriedly commented 4 years ago

Hi @KonradLinkowski that's an interesting thought. This library tries to use the native zip command when possible and mirror it's functionality the rest of the time, though. Do you know if there's an option for that built-into any native zip command?

KonradLinkowski commented 4 years ago

@nfriedly Hello, https://linux.die.net/man/1/zip -m or --move works like that

nfriedly commented 4 years ago

Oh, cool, I didn't know about that. do you think you can send a PR that implements the feature in JavaScript and forwards the flag along to the natives zip?