Archived Forum Post

Index of archived forum posts

Question:

Rename files on FTP up or download

Feb 18 '13 at 08:11

Is it possible to rename a file downloading and/or uploading via ftp.GetFile/ftp.MPutFiles?


Answer

The methods for uploading/downloading a single file have arguments for source AND destination paths. Therefore, it is obvious that the file may be renamed because the filenames passed for source and destination can be different. When uploading multiple files, then the filenames would need to be renamed after the upload/download. To rename a remote file, there is a method -- see the online reference documentation. To rename a local file: Why would you need Chilkat to rename a local file?