FtpListOption Enumeration

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Flags that can dicate how a file listing is performed

Namespace: System.Net.FtpClient
Assembly: System.Net.FtpClient (in System.Net.FtpClient.dll) Version: 1.0.5064.17461

Syntax

C#
[FlagsAttribute]
public enum FtpListOption
Visual Basic
<FlagsAttribute> 
Public Enumeration FtpListOption
Visual C++
[FlagsAttribute]
public enum class FtpListOption

Members

Member name Value Description
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.
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 3 Combines the Modify and Size flags
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.
ForceList 8 Force the use of the NLST command even if MLSD is supported by the server
NameList 16 Use the NLST command instead of LIST for a reliable file listing
ForceNameList 24 Combines the ForceList and NameList flags
DerefLinks 32 Try to dereference symbolic links

See Also