Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Zip files while copying

by aaron_baugher (Curate)
on Nov 16, 2011 at 15:54 UTC ( [id://938402]=note: print w/replies, xml ) Need Help??


in reply to Re: Zip files while copying
in thread Zip files while copying

One concern might be that if you give zip a pathname, it'll have that in the archive, and will want to unzip it there. So in your example, it'll want to unzip it as srcdir/file. That may or may not be a problem for him. On the other hand, if he copies it and then zips it, it'll be in the archive and unzip as destdir/file.

Really, although you can use zip on single files, it's really designed for making archives of directory trees. So he might be better served with something like gzip, that only compresses and doesn't try to know the filenames/paths.

Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://938402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found