in reply to Why isn't there a "copy" function?
A better question is why Unix does not have a copy function to copy files. The operating system can do a better job copying files than user code. It can be much more efficient with network file systems, knows more about file attributes, better optimize IO, and could implement copy-on-write behavior. A copy() that only worked within a filesystem would be similar to rename().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why isn't there a "copy" function?
by Anonymous Monk on Sep 10, 2004 at 04:18 UTC | |
|
Re^2: Why isn't there a "copy" function?
by mce (Curate) on Sep 10, 2004 at 07:11 UTC | |
by Anonymous Monk on Sep 10, 2004 at 09:15 UTC | |
by eserte (Deacon) on Sep 10, 2004 at 13:47 UTC | |
by Anonymous Monk on Sep 10, 2004 at 14:19 UTC | |
by eserte (Deacon) on Sep 10, 2004 at 19:59 UTC |