Back to product page

CheckDir method


Checks if remote dir exists.

Type

Void

Syntax

  • C#
  • VB.NET
public Void CheckDir();

public Void CheckDir(String RemotePath);
The CheckDir(RemotePath) syntax has these parts:
RemotePathFull path to a directory that should be checked for existance.

public Sub CheckDir()

public Sub CheckDir(ByVal RemotePath As String)
The CheckDir(RemotePath) syntax has these parts:
RemotePathFull path to a directory that should be checked for existance.

Remarks

This method tests if directory specified in RemotePath argument (or in RemotePath property) exists. Since wodFtpDLX.NET 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 throw the exception. Done event will be fired with detailed exception information.

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

Platforms

Windows