Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSClient.DirectoryExists

TElSimpleFTPSClient     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Checks if the directory exists.

Declaration

[C#/Java]
    bool DirectoryExists(string Path);

[VB.NET]
    Function DirectoryExists(ByVal Path As String) As Boolean

[Pascal]
    function DirectoryExists(const Path) : boolean;

[C++]
    bool DirectoryExists(const std::string &Path);

[PHP]
    bool DirectoryExists(string $Path)

Parameters

  • Path - the full path of the directory to be checked

Return value

    True if the directory exists and is a directory

Description

    Use this method to check if the directory exists and is accessible. The check is performed by changing current directory to the directory specified in Path parameter, checking response code and then reverting to previous value of current directory. So if the directory is not accessible (due to lack of permissions), this method will return false.

See also:     FileExists     ListDirectory    

Discuss this help topic in SecureBlackbox Forum