Dart.Ftp Namespace > Listing Class : Format Property |
Public ReadOnly Property Format As ListingFormat
Dim instance As Listing Dim value As ListingFormat value = instance.Format
public ListingFormat Format {get;}
public: property ListingFormat Format { ListingFormat get(); }
When a Listing object is created, the format of the listing is automatically detected. If the format is unable to be detected, ListingFormat.Unknown is returned.
The Text property is useful when dealing with servers that return a "proprietary" listing. For example, if the server may return a UNIX listing. This would look something like:
r-xr-xr-x 1 owner group 20 Jan 10 2002 file1.txt
It also may return a DOS listing which would look something like:
01-10-02 10:18AM 20 file1.txt
In either of these cases, the format would be detected and Listing.Format would be set appropriately. However, if the listing returned was a proprietary listing such as:
file1.txt Jan-10-2002 20
The Ftp component would be unable to detect the type, and the Listing would require manual parsing.