[Lazarus] A question about files managing
Henry Vermaak
henry.vermaak at gmail.com
Sat Mar 27 12:21:25 CET 2010
On 26 March 2010 23:50, waldo kitty <wkitty42 at windstream.net> 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
More information about the Lazarus
mailing list