Estimating File or Directory - WeOnlyDo Discussion board

Estimating File or Directory (wodSFTP / wodSFTP.NET / wodSFTPdll)

by STEVEN, Wednesday, April 11, 2007, 12:02 (6248 days ago)

Query,
How to estimate to exist of the file or directory at Remote Server?
Do it have any methods?
Thanks.

Re: Estimating File or Directory

by wodDamir, Wednesday, April 11, 2007, 12:25 (6248 days ago) @ STEVEN

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

Re: Estimating File or Directory

by wodSupport, Wednesday, April 11, 2007, 13:02 (6248 days ago) @ wodDamir

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