[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43206] gunzip deletes source files
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #43206] gunzip deletes source files |
Date: |
Tue, 07 Oct 2014 19:30:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 |
Follow-up Comment #4, bug #43206 (project octave):
Circling back to this issue since I just finished overhauling unpack. What is
the Matlab-compatible behavior we are trying to duplicate? Do they definitely
keep the original archive?
I think Mike's suggestion is the clean way to do things. However, we could
cheat and just do:
copyfile (orig_gz_fname, tmp_gz_fname);
..gunzip actions..
movefile (tmp_gz_fname, orig_gz_fname);
This would also work across platforms and is simple to implement. It, does,
however, require a copy of an archive file that might be very large. On the
other hand, disk storage space is so cheap that it is probably meaningless to
optimize here.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43206>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43206] gunzip deletes source files,
Rik <=