can't move unless filename is different
Posted: Fri 20 Dec 2013 15:51
Using ScSFTPClient.RenameFile, I'm uploading files to temporary folder, then moving them to the final destination folder. I've found that I get an error unless the filename is different. In otherwords if I call this:
it doesn't work, but if I call this:
it does work.
Is there a different way to move files (copy/delete is not practical) or do I have to actually change the name when calling RenameFile?
Using Delphi 2010 with SecureBridge 6.1.2
Code: Select all
ScSFTPClient.RenameFile('/upload/temp/abc.txt', '/upload/abc.txt')
Code: Select all
ScSFTPClient.RenameFile('/upload/temp/abc.txt', '/upload/abc2.txt')
Is there a different way to move files (copy/delete is not practical) or do I have to actually change the name when calling RenameFile?
Using Delphi 2010 with SecureBridge 6.1.2