Table of Contents

Class FtpListItem

Namespace
FluentFTP
Assembly
FluentFTP.dll

Represents a file system object on the server

public class FtpListItem
Inheritance
FtpListItem
Inherited Members
Extension Methods

Constructors

FtpListItem()

Blank constructor, you will need to fill arguments manually.

NOTE TO USER : You should not need to construct this class manually except in advanced cases. Typically constructed by GetListing().

public FtpListItem()

FtpListItem(string, long, FtpObjectType, DateTime)

Constructor with mandatory arguments filled.

NOTE TO USER : You should not need to construct this class manually except in advanced cases. Typically constructed by GetListing().

public FtpListItem(string name, long size, FtpObjectType type, DateTime lastModifiedTime)

Parameters

name string
size long
type FtpObjectType
lastModifiedTime DateTime

FtpListItem(string, string, long, bool, DateTime)

Constructor with mandatory arguments filled.

NOTE TO USER : You should not need to construct this class manually except in advanced cases. Typically constructed by GetListing().

public FtpListItem(string record, string name, long size, bool isDir, DateTime lastModifiedTime)

Parameters

record string
name string
size long
isDir bool
lastModifiedTime DateTime

Properties

Chmod

Gets the file permissions in the CHMOD format.

public int Chmod { get; set; }

Property Value

int

Created

Gets the created date of the object after timezone conversion (if enabled).

public DateTime Created { get; set; }

Property Value

DateTime

FullName

Gets the full path name to the file or folder.

public string FullName { get; set; }

Property Value

string

GroupPermissions

Gets the group permissions.

public FtpPermission GroupPermissions { get; set; }

Property Value

FtpPermission

Input

Gets the input string that was parsed to generate the values in this object.

public string Input { get; set; }

Property Value

string

LinkCount

Gets the number of links pointing to this file. Only supplied by Unix servers.

public int LinkCount { get; set; }

Property Value

int

LinkObject

Gets the object that the LinkTarget points to.

public FtpListItem LinkObject { get; set; }

Property Value

FtpListItem

LinkTarget

Gets the target a symbolic link points to.

public string LinkTarget { get; set; }

Property Value

string

Modified

Gets the last write time of the object after timezone conversion (if enabled).

public DateTime Modified { get; set; }

Property Value

DateTime

Name

Gets the name of the file or folder. Does not include the full path.

public string Name { get; set; }

Property Value

string

OthersPermissions

Gets the others permissions.

public FtpPermission OthersPermissions { get; set; }

Property Value

FtpPermission

OwnerPermissions

Gets the owner permissions.

public FtpPermission OwnerPermissions { get; set; }

Property Value

FtpPermission

RawCreated

Gets the created date of the object before any timezone conversion.

public DateTime RawCreated { get; set; }

Property Value

DateTime

RawGroup

Gets the raw string received for the file's GROUP permissions. Use this if the other properties are blank/invalid.

public string RawGroup { get; set; }

Property Value

string

RawModified

Gets the last write time of the object before any timezone conversion.

public DateTime RawModified { get; set; }

Property Value

DateTime

RawOwner

Gets the raw string received for the file's OWNER permissions. Use this if the other properties are blank/invalid.

public string RawOwner { get; set; }

Property Value

string

RawPermissions

Gets the raw string received for the file permissions. Use this if the other properties are blank/invalid.

public string RawPermissions { get; set; }

Property Value

string

Size

Gets the size of the object.

public long Size { get; set; }

Property Value

long

SpecialPermissions

Gets special UNIX permissions such as Sticky, SUID and SGID.

public FtpSpecialPermissions SpecialPermissions { get; set; }

Property Value

FtpSpecialPermissions

SubType

Gets the sub type of file system object.

public FtpObjectSubType SubType { get; set; }

Property Value

FtpObjectSubType

Type

Gets the type of file system object.

public FtpObjectType Type { get; set; }

Property Value

FtpObjectType

Methods

ToCode()

Returns a code representation of this object and its properties

public string ToCode()

Returns

string

ToString()

Returns a string representation of this object and its properties

public override string ToString()

Returns

string

A string representing this object