Discussion:
[Bug 24] New: Zimdump -d DIRECTORY should be able to create the DIRECTORY if necessary
b***@public.gmane.org
2010-09-09 11:22:22 UTC
Permalink
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-+ciCUjOJn3Ednm+***@public.gmane.org
ReportedBy: emmanuel-***@public.gmane.org
CC: dev-l-***@public.gmane.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.
--
Configure bugmail: http://bugs.openzim.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
b***@public.gmane.org
2010-09-09 13:24:46 UTC
Permalink
http://bugs.openzim.org/show_bug.cgi?id=24


Manuel Schneider <manuel.schneider-***@public.gmane.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Component|zimlib |zimdump
--
Configure bugmail: http://bugs.openzim.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
b***@public.gmane.org
2010-09-26 20:17:20 UTC
Permalink
http://bugs.openzim.org/show_bug.cgi?id=24


Tommi Mäkitalo <***@tntnet.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED




--- Comment #1 from Tommi Mäkitalo <***@tntnet.org> 2010-09-26 22:17:20 CET ---
One level is created. So at least the target directory need to exist.

--
Configure bugmail: http://bugs.openzim.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
b***@public.gmane.org
2010-09-27 06:26:28 UTC
Permalink
http://bugs.openzim.org/show_bug.cgi?id=24


Emmanuel Engelhart <emmanuel-***@public.gmane.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |




--- Comment #2 from Emmanuel Engelhart <emmanuel-***@public.gmane.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?
--
Configure bugmail: http://bugs.openzim.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
b***@public.gmane.org
2010-09-29 19:44:07 UTC
Permalink
http://bugs.openzim.org/show_bug.cgi?id=24


Tommi Mäkitalo <***@tntnet.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |WONTFIX




--- Comment #3 from Tommi Mäkitalo <***@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

--
Configure bugmail: http://bugs.openzim.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
b***@public.gmane.org
2010-09-30 06:13:31 UTC
Permalink
http://bugs.openzim.org/show_bug.cgi?id=24





--- Comment #4 from Emmanuel Engelhart <emmanuel-***@public.gmane.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.
--
Configure bugmail: http://bugs.openzim.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Loading...