octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47578] zip/gzip/bzip2 fail when writing to pa


From: Rik
Subject: [Octave-bug-tracker] [bug #47578] zip/gzip/bzip2 fail when writing to path with spaces in name
Date: Wed, 30 Mar 2016 22:08:54 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #1, bug #47578 (project octave):

Are you sure you have the syntax right?  It is quite different between gzip
and zip.

For gzip, the help string says


FILELIST = gzip (FILES, DIR)


When called with 


gzip ('testgzip.gz', '/tmp/tmpfil123') 


You are asking it to compress the file 'testgzip.gz' (and gzip will add the
extension so this will become 'testgzip.gz.gz') and place it in the directory
'/tmp/tmfil123'.  But that location already exists as a file, so Octave can't
make a directory to place the output in and fails with


error: gzip: Failed to create output directory DIR 


On the other hand, the help string for zip is


FILELIST = zip (ZIPFILE, FILES)


so the invocation


zip ('testzip.zip', '/tmp/tmpfil123') 


probably succeeds and creates a zip file with the compressed results of
tmfil123.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47578>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]