PowerTCP FTP for .NET
DirectoryName Field



Gets the path reported for files in sub-directories. Can be set by the user when parsing the Text property.
Syntax
Public DirectoryName As String
Dim instance As ListEntry
Dim value As String
 
value = instance.DirectoryName
 
instance.DirectoryName = value
public string DirectoryName
public:
String^ DirectoryName

Field Value

A string representing the path of the file.
Remarks

This property represents the path of the file only. To obtain the name, use the ListEntry.Name property.

This property will only have a value if:

  1. The List call is for a recursive listing: Ftp.List("-R", true)
  2. The server supports recursive listings, in the format of:
            ./hello:
            total 12
            -rw-r-----   1 test     users       5751 Jan 29  2011 links.txt
            
            ./newdir:
            total 12
            -rw-r-----   1 test     users       4339 Jan 29  2011 ftpdebug2.txt
            -rw-r-----   1 test     users         12 Jan 27  2011 rtv.txt
            
See Also

Reference

ListEntry Class
ListEntry Members


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