PDA

View Full Version : extraction fails if target directory does not exist


captainmidnight
02-04-2009, 10:29 PM
Assume that I have the TAR file t.tar in the current directory where I have a shell window pointing to.

If I execute the command
jzip -ed t.tar
then the extraction works, but it dumps the contents into the current directory.

I would like the extraction contents to be dumped into another directory, say the subdirectory .\extract

If I execute the command
jzip -ed t.tar .\extract
then the extraction works, dumping the contents in .\extract if .\extract previously exists before I execute the command. But it fails with a strange error dialog ("There are no files matching the specified criteria. Nothing to do") if .\extract is not currently existing.

Could you fix jzip so that it creates any necessary directories in order to do the extraction? Or is that considered to be too dangerous?