FTPConnectionListDir
Full Description
swirl
Syntax
  define external stream function FTPConnectionListDir
                          value FTPConnection this-FTPConnection
                      dir value stream dir optional
                     full value switch full optional initial {False}


Purpose

This function lists the entries in the current directory or another specified directory.

Arguments:

  • "this-FTPConnection" is an opaque object of type FTPConnection.
  • "dir" allows you to specify a different directory for which the contents should be listed.
  • "full" is a switch value that, when true, will cause this function to return a full UNIX-style directory listing (including file permissions, etc). When set to false, only the filenames will be returned.

Examples:

  ; list directory contents with full listing
  output FTPConnectionListDir MyCon full true

  ; list the contents of the subdirectory "test-dir"
  output FTPConnectionListDir MyCon dir "test-dir" full true

Copyright © OmniMark Technologies Corporation, 1988-1998.