Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Renaming overwrites files
philjeary
Philipj@education.co.uk

From: Rochester, United Kingdom
Posts: 7
Member Since: 05/09/06
posted July 5, 2006 5:55 AM

Hi, just a quick question...

Is renaming supposed to overwrite existing files? In the example program if I rename a file to have the same name of a file that already exists, the new file simply replaces the old one.

Is that supposed to happen? Not a problem if it does, i'd just like to know.

I searched the forum in case it had been asked before but I couldnt find anything.

Regards,
Phil
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted July 5, 2006 9:16 AM

Yes, re-naming to a file that already exists overwrites the existing file.

Actually it seems RFC 959 does not define if Re-Naming should overwrite files or not. So I think it is okay to give the ability to overwrite the files. And it can be upto the developers to decide how he implements it.

However, using a LIST before RENAME method can be used to ensure uniqueness of filenames, and prevent/inform about possible filename conflict.

-Raj
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX