SocketTools .NET Edition

FtpClient.DirectoryFormat Property

Gets and sets a value which specifies the current directory format type.

[Visual Basic]
Public Property DirectoryFormat As FtpDirectoryFormat
[C#]
public FtpClient.FtpDirectoryFormat DirectoryFormat {get; set;}

Property Value

An FtpDirectoryFormat enumeration value which specifies the current directory format.

Remarks

This property should only be set if the client cannot automatically determine the directory format returned by the server. The default directory format is determined both by the server's operating system and by analyzing the format of the data returned by the server. If the class is unable to automatically determine the format, it will attempt to parse the list of files as though it is a UNIX style listing.

If this property is set to the default value FtpDirectoryFormat.formatAuto and the class can determine from the format of the file listing returned by the server, then the property will change value upon the first call to the GetFirstFile method or the first time the OnFileList event is generated.

See Also

FtpClient Class | SocketTools Namespace