ComponentSpace FTP Class Library Reference

DirectoryListParser.ParseUnixDirectoryListItem Method 

Parse Unix format directory list line into Unix directory list item.

[Visual Basic]
Public Shared Function ParseUnixDirectoryListItem( _
   ByVal listLine As String _
) As UnixDirectoryListItem
[C#]
public static UnixDirectoryListItem ParseUnixDirectoryListItem(
   string listLine
);

Parameters

listLine
The directory list line.

Return Value

The directory list item.

Remarks

The expected format is:

<permissions> [<inodes>] <owner> [<group>] <size> <date> <name>

where the <date> format is either:

<month> <day> <hour>:<minute> or <month> <day> <year>.

and, for a soft link, the name is in the form of <name> -> <softlink>

The following are examples of supported Unix directory list lines:

drwxrwx--x   2 64099    131         8192 Apr 26 03:20 downloads
drwx------   2 root     root       16384 Sep 11  2004 lost+found
dr-xr-x--x   4 root     other        512 Oct 23  2002 etc
-rw-r--r--   1 1006     root     1366540 Aug 19  1998 Imeter-1.2.tar.gz
lrwxrwxrwx   1 root     other         12 Oct 12  2004 cores -> public/cores

Exceptions

Exception TypeCondition
FtpException Thrown when the parsing fails.

See Also

DirectoryListParser Class | ComponentSpace.Ftp Namespace | ParseMSDOSDirectoryListItem