edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

FTPConnectionRelativePathToAbsolute Method

Combines a relative path with an absolute path.

Namespace:  EnterpriseDT.Net.Ftp
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
protected string RelativePathToAbsolute(
	string absolutePath,
	string relativePath
)

Parameters

absolutePath
Type: SystemString
Absolute path
relativePath
Type: SystemString
Relative path

Return Value

Type: 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