edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

FTPConnectionRelativePathToAbsolute Method

Combines a relative path with an absolute path.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
protected string RelativePathToAbsolute(
	string absolutePath,
	string relativePath
)

Parameters

absolutePath  String
Absolute path
relativePath  String
Relative path

Return Value

String
Combination of absolute and relative paths.

Remarks

An example of an absolute path is 'C:\work\ftp'. Examples of a relative path combined with this are shown below:

  • 'myfiles\cv.txt' => 'c:\work\ftp\myfiles\cv.txt'
  • '.\myfiles\cv.txt' => 'c:\work\ftp\myfiles\cv.txt'
  • '..\myfiles\cv.txt' => 'c:\work\myfiles\cv.txt'

See Also