Archived Forum Post

Index of archived forum posts

Question:

SFTP Check If File Exists

Apr 26 '16 at 16:54

I know there is way to check if a file exists via FTP (by using the ListPattern and NumFilesAndDirs) but I need a way to ensure the file exists on the server via SFTP. I didn't see anything comparable in the SFTP documentation unless I missed something.


Answer

Call OpenFile with "openExisting" as the createDisposition parameter.