Back to product page

CheckDir method


Checks if remote dir exists.

Type

A Long value. Holds error number that occurred, if any.

Syntax

  • Basic
object.CheckDir [RemotePath]
The CheckDir(object,RemotePath) syntax has these parts:
objectAn expression evaluating to an object of type wodFtpDLX.
RemotePathOptional. A Variant value. Full path to a directory on the server.

Remarks

CheckDir method test if directory specified in RemotePath argument (or in RemotePath property) exists. Since wodFtpDLX does not allow you to change directory using any commands (but, rather, always requires full paths in LocalPath and RemotePath properties), this method helps you to determine if given directory exists - for whatever purpose. If error occurs, CheckDir will return the error, but it will also throw the exception (depends on your environment on how it will be handled).

This method was added in version 2.3.4

Do not forget that RemotePath should always specify absolute path (i.e. /home/joe/something) instead of relative path (i.e. joe/something).

Platforms

Windows