Closed micronaut closed 6 years ago
I'm sure it's possible, but this library needs some work to get back in shape :/
Doesn't it already do this? This line should do recursion in the native method https://github.com/nfriedly/node-bestzip/blob/master/lib/bestzip.js#L37 And this line should do the recursion in the non-native method https://github.com/nfriedly/node-bestzip/blob/zip-symlinked-folders/lib/bestzip.js#L69
I seemed to recall in my usage that it dropped down to the sub folders also. The only thing that was fixed (and it still in a branch awaiting testing) is for sym-linked folders not working correctly.
@Lampei It does seem to recursively extract files and add them to the zip file, but it is not adding the directories to the zip file. The zip file is flattened. I saw the expand option being passed to archiver, which I thought would add the directories, but this is not happening.
OK, I just released v2.0.0, and I believe it should now behave the way you want. Please try it out and let me know.
@nfriedly Thanks for the update. I ended up using an alternative that is working for now.
I am trying to zip up several files and directories. I would like to keep the directory structure so that when the zip file is unzipped the directories are recreated.
Is this possible to do?