[fpc-pascal] Problems with moving/renaming file using sysutils.renamefile
Marco van de Voort
marcov at stack.nl
Fri Feb 10 13:39:09 CET 2012
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.
More information about the fpc-pascal
mailing list