node-bestzip icon indicating copy to clipboard operation
node-bestzip copied to clipboard

Delete source directory after zipping CLI

Open KonradLinkowski opened this issue 5 years ago • 3 comments

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

KonradLinkowski avatar Aug 17 '20 08:08 KonradLinkowski

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?

nfriedly avatar Aug 17 '20 21:08 nfriedly

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

KonradLinkowski avatar Aug 17 '20 22:08 KonradLinkowski

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?

nfriedly avatar Aug 18 '20 12:08 nfriedly