<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 10 Feb 2012, at 13:31, Reinier Olislagers wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">1. Renaming is not moving???<br>The help says:<br>"RenameFile renames a file from OldName to NewName. The function returns<br>True if successful, False otherwise. Remark: you cannot rename across<br>disks or partitions."<br>What does this mean, then?<br>If you rename from e.g. /etc/b to /var/b, (and assuming they're on the<br>same partition), you're moving the files from one directory to another,<br>aren't you?<br></span></span></blockquote><div><br></div><div>At the level of the filesystem, that is also a rename operation.</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">2. What is the function for "properly" moving files in FPC that also<br>moves between partitions, if one exists?<br></span></span></blockquote><div><br></div><div>I don't think there is one.</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">Or a file copy routine (I've found only Lazarus fileutil.Copyfile)? And<br>could a link to that be put in the RenameFile help?<br></span></span></blockquote><div><br></div><div>You indeed have to copy the file and then delete the original one in that case. I don't know whether there is a copyfile routine in the RTL.</div></div><br><div><br></div><div>Jonas</div></body></html>