[fpc-pascal] Re: Problems with moving/renaming file using sysutils.renamefile
Reinier Olislagers
reinierolislagers at gmail.com
Fri Feb 10 13:44:22 CET 2012
On 10-2-2012 13:39, Marco van de Voort wrote:
> In our previous episode, Reinier Olislagers said:
>> 1. Renaming is not moving???
>> The help says:
>> "RenameFile renames a file from OldName to NewName. The function returns
>> True if successful, False otherwise. Remark: you cannot rename across
>> disks or partitions."
>> What does this mean, then?
>
> Only the entry in the directory is changed on rename. Not the data.
> If you rename across partitions or disks, the data must also be moved.
>
I understand that must be the reason why you can't rename across
partitions but I'd suggest spelling things out a bit more in the help...
Then again, my preferences might not be the help writers' ;)
Thanks,
Reinier
More information about the fpc-pascal
mailing list