Estimating File or Directory (wodSFTP / wodSFTP.NET / wodSFTPdll)
Query,
How to estimate to exist of the file or directory at Remote Server?
Do it have any methods?
Thanks.
Query,
How to estimate to exist of the file or directory at Remote Server?
Do it have any methods?
Thanks.
Hi Steven,
We don't have a method that would do that implemented in wodSFTP. However, that could pretty easily be done if you do ListDir or any method which tries to access that file/directory. If the file/directory doesn't exist on server, it will return the appropriate error.
Hope this helps.
Regards,
Damba
Steven,
you can also use RealPath method - if error is returned then path doesn't exist.
http://www.weonlydo.com/SFTP/Help/wodSFTPLib~wodSFTP~RealPath.html
Kreso