Indy 9
GetItemText
See Also
Textual representation of the directory entry.
Return Value
String - Text representing the directory entry.
Description
GetItemText is a String function that generates a textual representation of a directory entry in Items at the position specified by AItemIndex. GetItemText uses the value in ListFormat to determine the exact content and format of a directory entry. The following are examples of GetItemText output using common ListFormat values:

  • flfDos

  01-01-01  12:59am       <DIR>           DirectoryName
  01-01-01  12:59am       <DIR>           AnotherDirectoryName
  01-01-01  12:59pm                 1234  Filename.ext
  01-01-01  12:59pm                 2345  AnotherFilename.ext

  • flfUnix, flfVax

  drw-rw-rw-   1 owner    group         512 Jan 01 12:59  DirectoryName
  drw-rw-rw-   1 owner    group         512 Jan 01 2000   AnotherDirectoryName
  -rw-rw-rw-   1 owner    group         512 Jan 01 12:59  Filename.ext
  -rw-rw-rw-   1 owner    group         512 Jan 01 2000   AnotherFilename.ext

GetItemText is used in TIdFTPServer.OnListDirectory to generate the results for the FTP LIST command.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.