FtpDir$()


d$() = FtpDir$(session)

This command returns a string array which contains a list of files and directories in the current working directory.

Here is an example of how to display a list of all the files and directories:

dim d$(0)

' Get a list of files and directories current FTP server directory.
d$() = FtpDir$(1)

if d$(0) = "" then
Print "No Files Returned"
else
' Display a list of the results
List d$(), f$
endif

Directory entries are preceeded by a "/".

/.
/..
readme.txt
/test

FtpOpen


FtpClose


FtpGetState()


FtpGetError$()


FtpGetReply$()


FtpChDir


FtpGetDir$()


FtpDirFull$()


FtpMkDir


FtpRmDir


FtpGet


FtpPut


FtpDelete


FtpRename


FtpCmd







Become a Patron