PowerTCP FTP for .NET
Format Property



Gets the format of the listing: ListingFormat.UNIX, ListingFormat.DOS or ListingFormat.Unknown.
Syntax
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();
}

Property Value

One of the ListingFormat values.
Remarks

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.

See Also

Reference

Listing Class
Listing Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic