Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.RequestAbsolutePath

TElSimpleSFTPClient     See also     


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


Asks the server to canonicalize any given path name to the absolute path.

Declaration

[C#]
    string RequestAbsolutePath(string Path);

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

[Pascal]
    function RequestAbsolutePath(const Path : string) : string;

[C++]
    void RequestAbsolutePath(const std::string &Path, std::string &OutResult);

[PHP]
    string RequestAbsolutePath(string $Path)

[Java]
    String requestAbsolutePath(String Path);

Parameters

  • Path - path name
  • AbsPath - absolute path that has been returned

Return value

    Returns

Description

    Use this method to make server canonicalize any path name to the absolute path. This is useful for converting path names containing «..» components or relative pathnames without a leading slash into absolute paths.
    In case of error, EElSFTPError exception containing SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.

See also:     RequestAbsolutePathEx     MakeDirectory     OpenDirectory    

Discuss this help topic in SecureBlackbox Forum