Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Fastest way to copy a file from 1 direcotry to another directory

by DBAugie (Beadle)
on Mar 29, 2008 at 17:49 UTC ( [id://677239]=note: print w/replies, xml ) Need Help??


in reply to Fastest way to copy a file from 1 direcotry to another directory

Your question raises for me more questions.

  • Windows or *nix ??
  • do you really a need a copy of the file?
  • are you copying to some kind of storage appliance (SAN?NAS?) what kind of bandwidth do you have?
I recommend
  • Windows: create shortcut from source file in the target directory
  • *nix: create link

And I'll tell you why. Unless you are going to scrap the original file, you do not want multiple copies of a file floating around your system. When one changes, you must change all the copies. Unless you document what you are doing very carefully, the coder who has to follow you will not be aware that there are copies or originals that need to be maintained.

Experience tells me that actions taken now will be complete surprises in X number of weeks. Save yourself the bother and embarrassment of unsightly system psoriasis by prevserving what you have and linking it to where you need it to be.

Of course, after careful and mature consideration, you can't see a way around physically copying the files, I think that native utilities (cp, copy) are likely to be the fastest. r,

Augie

  • Comment on Re: Fastest way to copy a file from 1 direcotry to another directory

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found