http://bugs.openzim.org/show_bug.cgi?id=24
Summary: Zimdump -d DIRECTORY should be able to create the DIRECTORY if necessary Product: openZIM Version: unspecified Platform: All OS/Version: All Status: NEW Severity: trivial Priority: P5 Component: zimlib AssignedTo: tommi@tntnet.org ReportedBy: emmanuel@engelhart.org CC: dev-l@openzim.org Estimated Hours: 0.0
zimdump -D test file.zim error writing file test/A/#ubuntu-fr-meeting
If I create the test directory it works.
IMO this should not trigger an error and simply create it (the directory) if necessary.
http://bugs.openzim.org/show_bug.cgi?id=24
Manuel Schneider manuel.schneider@wikimedia.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|zimlib |zimdump
http://bugs.openzim.org/show_bug.cgi?id=24
Tommi Mäkitalo tommi@tntnet.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #1 from Tommi Mäkitalo tommi@tntnet.org 2010-09-26 22:17:20 CET --- One level is created. So at least the target directory need to exist.
http://bugs.openzim.org/show_bug.cgi?id=24
Emmanuel Engelhart emmanuel@engelhart.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |
--- Comment #2 from Emmanuel Engelhart emmanuel@engelhart.org 2010-09-27 08:26:28 CET --- But why? "tar", "unzip", "svn co" every command creates the necessary *whole* directory tree if necessary. This is the normal behaviour... Why expecting that people create this directory first?
http://bugs.openzim.org/show_bug.cgi?id=24
Tommi Mäkitalo tommi@tntnet.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX
--- Comment #3 from Tommi Mäkitalo tommi@tntnet.org 2010-09-29 21:44:07 CET --- Really? Which version of tar and unzip and tar do you have? Mine doesn't:
$ unzip -d bar/baz foo.zip checkdir: cannot create extraction directory: bar/baz
$ tar -x -C bar -f foo.tar tar: bar: Cannot chdir: No such file or directory
Tommi
http://bugs.openzim.org/show_bug.cgi?id=24
--- Comment #4 from Emmanuel Engelhart emmanuel@engelhart.org 2010-09-30 08:13:31 CET --- My examples are not so good, tar has the root directory in the file and unzip has exactly the same problem as zimdump.
What I want to say is if you have a tgz or zip, nobody (except unzip) ask you to create first a directory (default usage) before unpacking the content. tar creates it like it is defined in the file and zip archiver creates it based on the filename. This is true unzip does not work like that at all, and this is really not handfull to use it, because this is common in zip not packaging the root directory itself but only the content.
I will not reopen this bug because this is a minor point, but I think this is not OK to close a feature request without giving at least one argument.
At least please display an error message which is more explicit.