Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Copy preserving attributes

by JavaFan (Canon)
on Nov 02, 2009 at 19:35 UTC ( [id://804551]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Copy preserving attributes
in thread Copy preserving attributes

Considering that the running time of the 'cp' is most likely to be bound by disk I/O, I wouldn't worry about the overhead of calling 'cp'.

Specially if you have the need to take care of system specifics (like extended attributes/ACLs), I would prefer calling the systems 'cp' then doing it all yourself. Specially if you don't have access to all the environments the program is supposed to run in.

Replies are listed 'Best First'.
Re^4: Copy preserving attributes
by gmargo (Hermit) on Nov 02, 2009 at 20:52 UTC

    I'd have to agree with JavaFan, especially considering those new-fangled attributes. One potential for optimization, if you're not renaming files: you could gather them up by destination directory, and copy multiple files within one command. Not the best solution for error reporting though.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found