Class FtpResult
- Namespace
- FluentFTP
- Assembly
- FluentFTP.dll
Stores the result of a file transfer when UploadDirectory or DownloadDirectory is used.
public class FtpResult
- Inheritance
-
FtpResult
- Inherited Members
- Extension Methods
Constructors
FtpResult()
public FtpResult()
Properties
Exception
Gets the error that occurring during transferring this file, if any.
public Exception Exception { get; set; }
Property Value
IsDownload
Returns true if the file was downloaded, false if it was uploaded.
public bool IsDownload { get; set; }
Property Value
IsFailed
Was there an error during transfer? You can read the Exception property for more details.
public bool IsFailed { get; set; }
Property Value
IsSkipped
Was the file skipped?
public bool IsSkipped { get; set; }
Property Value
IsSkippedByRule
Was the file skipped due to failing the rule condition?
public bool IsSkippedByRule { get; set; }
Property Value
IsSuccess
Returns true if the file was downloaded/uploaded, or the file was already existing with the same file size.
public bool IsSuccess { get; set; }
Property Value
LocalPath
Stores the absolute local path of the current file being transferred.
public string LocalPath { get; set; }
Property Value
Name
Gets the name and extension of the file.
public string Name { get; set; }
Property Value
RemotePath
Stores the absolute remote path of the current file being transferred.
public string RemotePath { get; set; }
Property Value
Size
Gets the size of the file, or 0 if unknown.
public long Size { get; set; }
Property Value
Type
Gets the type of file system object.
public FtpObjectType Type { get; set; }
Property Value
Methods
ToListItem(bool)
Convert this result to a FTP list item.
public FtpListItem ToListItem(bool useLocalPath)
Parameters
useLocalPath
bool
Returns
ToStatus()
Convert this object to a FtpStatus enum for quick comparison.
public FtpStatus ToStatus()
Returns
ToString()
Human readable results
public override string ToString()