wodFtpDLX ActiveX Control - CheckDir Method
      
 

Description

Checks if remote dir exists.


Return Type

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


Syntax

object.CheckDir [RemotePath]



The CheckDir Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodFtpDLX.
RemotePath Optional. 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).