SFTP upload/download exception question
Posted: Tue 11 Dec 2012 19:50
Hi,
When I am doing a upload or download and I have the overwrite option set to false
How can I detect in the try except that it was related to the file overwrite and
not some other error like the connection failed?
I want to timestamp the file if it exists
When I am doing a upload or download and I have the overwrite option set to false
How can I detect in the try except that it was related to the file overwrite and
not some other error like the connection failed?
I want to timestamp the file if it exists
Code: Select all
try
FSFTP.UploadFile(sourcefile,destfile,false);
except
on e:EScSFTPError do
showmessage(e.error);
end;