On 26 March 2010 23:50, waldo kitty <[email protected]> wrote: > On 3/26/2010 09:58, Andrew Brunner wrote: >> >> I always use copyfile and check the error and then delete the file if >> needed. This ensures that the file was actually copied. It's just >> better that way :-) > > it is also required when moving files to different drives/partitions... at > least, that's the way i've always done it in the DOS/OS2/Winwhatever > world...
True. The rename syscall on linux won't work if it's not on the same mountpoint, even if it's on the same partition. I always use the filesystem tools (cp, mv) to do these operations if I care about performance. Henry -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
