Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.FtpDLX
- Properties
- Authentication
- Blocking
- BufferSize
- Certificate
- Compression
- DirFormat
- DirItems
- Encryption
- Hostname
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalPath
- Login
- MaxTransferRate
- Passive
- Password
- Port
- PreserveDates
- PrivateKey
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- PublicKeyOpenSSH
- PublicKeySSH
- RemotePath
- Resume
- SecureMethod
- SmartGet
- SmartPut
- State
- StrictHost
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Methods
- Events
- Properties
- WeOnlyDo.Client.DirItemsCollection
- WeOnlyDo.Client.DirItem
- How to get support?
CheckDir method
Checks if remote dir exists.
Type
VoidSyntax
- C#
- VB.NET
public Void CheckDir();
public Void CheckDir(String RemotePath);
The CheckDir(RemotePath) syntax has these parts:
public Void CheckDir(String RemotePath);
The CheckDir(RemotePath) syntax has these parts:
RemotePath | Full 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:
public Sub CheckDir(ByVal RemotePath As String)
The CheckDir(RemotePath) syntax has these parts:
RemotePath | Full 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).