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

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

[Octave-bug-tracker] [bug #42779] [OF] odswrite: "zip I/O error" when in


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #42779] [OF] odswrite: "zip I/O error" when in different directory
Date: Wed, 13 Aug 2014 18:43:27 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 Iceape/2.22

Update of bug #42779 (project octave):

                  Status:               Need Info => Wont Fix               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #6:

Answering my own question:

address@hidden somedir]$ ls -l
total 8
-rw-r--r-- 1 philip philip 23 Aug 13 20:25 file1
-rw-r--r-- 1 philip philip 23 Aug 13 20:25 file2
address@hidden somedir]$ ls ../tst
tst2/
## so no subdir ../tst/tst4/
address@hidden somedir]$ zip -q -r ../tst/tst2/tst3.zip *.* .  ## works fine
address@hidden somedir]$ zip -q -r ../tst/tst4/tst3.zip *.* .
zip I/O error: No such file or directory
zip error: Could not create output file (../tst/tst4/tst3.zip)


which gives the exact same error as the OP gets. On Windows (mingw/msys) zip
gives the same error messages.

So this is due to zip not being able to create intermediate directories. That
is something that can't be fixed on the Octave side unless a lot of effort is
spent in parsing filenames, checking presence of each subdir in the filename
and creating them if required. I do not think that is worth the trouble.

Closing with "Won't fix".
(I *will* fix the other bug, i.e., proper return value)


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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