siranwu / theunarchiver

Automatically exported from code.google.com/p/theunarchiver
Other
0 stars 0 forks source link

NSIS, empty directories are not created #748

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
UNAR doesn't create the empty directories, with and without the option : 
-force-directory.
I tested this with the last version of the code. I recompiled the code and I 
patched it (look the patch in attachment). Unfortunately I didn't understand 
how UNAR manages the empty directories. Thus, with my patch the empty 
directories are always created !!!

Original issue reported on code.google.com by samuelv0...@gmail.com on 18 May 2014 at 4:30

Attachments:

GoogleCodeExporter commented 9 years ago
It should always create them, if you add entries for them. The -force-directory 
option is unrelated, it just says whether or not an enclosing directory for all 
files is created or not.

Original comment by paracel...@gmail.com on 18 May 2014 at 8:16

GoogleCodeExporter commented 9 years ago
Fine, in this case my patch fix the issue with the empty directories into NSIS 
archive.

Original comment by samuelv0...@gmail.com on 19 May 2014 at 8:18

GoogleCodeExporter commented 9 years ago

Original comment by paracel...@gmail.com on 19 May 2014 at 8:19

GoogleCodeExporter commented 9 years ago
Applied with some modifications. I removed the hasPrefix: test, since I figured 
it might as well report intermediate directories. That seem like a good idea?

Original comment by paracel...@gmail.com on 21 Jul 2015 at 9:45