Table of Contents

Enum FtpListOption

Namespace
FluentFTP
Assembly
FluentFTP.dll

Flags that can control how a file listing is performed. If you are unsure what to use, set it to Auto.

[Flags]
public enum FtpListOption
Extension Methods

Fields

AllFiles = 4

Show hidden/dot files. This only pertains to servers that do not support the MLSD command. This option makes use the non standard -a parameter to LIST to tell the server to show hidden files. Since it's a non-standard option it may not always work. MLSD listings have no such option and whether or not a hidden file is shown is at the discretion of the server.

Auto = 0

Tries machine listings (MDTM command) if supported, and if not then falls back to OS-specific listings (LIST command)

ForceList = 8

Force the use of OS-specific listings (LIST command) even if machine listings (MLSD command) are supported by the server

ForceNameList = ForceList | NameList

Force the use of the NLST command (the slowest mode) even if machine listings and OS-specific listings are supported by the server

IncludeSelfAndParent = 512

Include two extra items into the listing, for the current directory (".") and the parent directory (".."). Meaningless unless you want these two items for some reason.

Modify = 1

Load the modify date using MDTM when it could not be parsed from the server listing. This only pertains to servers that do not implement the MLSD command.

NameList = 16

Use the NLST command instead of LIST for a reliable file listing

NoPath = 256

Do not retrieve path when no path is supplied to GetListing(), instead just execute LIST with no path argument.

Recursive = 128

Gets files within subdirectories as well. Adds the -r option to the LIST command. Some servers may not support this feature.

Size = 2

Load the file size using the SIZE command when it could not be parsed from the server listing. This only pertains to servers that do not support the MLSD command.

SizeModify = Modify | Size

Combines the Modify and Size flags

UseLS = 72

Sets the ForceList flag and uses LS' instead of LIST' as the command for getting a directory listing. This option overrides ForceNameList and ignores the AllFiles flag.

UseStat = 1024

Force the use of STAT command for getting file listings