CreateDir
(sDir As String) As Boolean
Creates a directory, specifies
by sDir, on the FTP server. Returns
True if successful, or False otherwise.
DelFile
(sFilename As String) As Boolean
Deletes a file on the FTP
server. The sFilename parameter specifies
the file to delete. The method returns True if successful,
or False otherwise.
DownloadFile
(sRemoteFilename As String, sLocalFilename As String) As Boolean
Downloads a file from the FTP server to
the local client. The sRemoteFilename
parameter specifies the filename at the FTP server and the
sLocalFilename parameter specifies
the filename at the local client. The method returns True
if successful, or False otherwise.
FileExists
(sFilename As String) As Boolean
Checks if a file exists on
the FTP server. The sFilename parameter
specifies the file to check. Returns True if the file exists,
or False otherwise.
GetCurDir
() As String
Returns the current directory on the FTP
server. If there is an error the method returns an empty string
("").
GetErrorMessage
() As String
Returns the last error as
a text message if an error occurred when running an FTP command.
GetFileDateTime
(sFilename As String) As String
Returns the file date and
time for a file on the FTP server. The sFilename
parameter specifies the file to examine. If there is an error the
method returns an empty string ("").
GetFileSize
(sFilename As String) As Long
Returns the size (in bytes)
of a file on the FTP server. The sFilename
parameter specifies the file to examine. If there is an error the
method returns 0.
GetLastError
() As Long
Returns an error code for
the last error that occurred in the control.
A list
of possible error codes is available here.
ListDir
(sDir As String, sFileSpec As String) As String
Lists the contents of a directory
on the FTP server. The sDir parameter
specifies the directory to list and the sFileSpec
parameter specifies a group of files to list. You specify the file
group by using wildcard characters, for example "*.txt" or
"*.*". The method returns the content if the operation was
successful. If more than one filename is found they are separated
with a "|" character in the return string. If there is an error
the method returns an empty string ("").
ListDirectoriesInDir
(sDir As String) As String
Lists all directories in a specified
directory. The sDir parameter specifies
the directory to examine. If more than one directory is found they
are separated with a "|" character in the return string. If there
is an error the method returns an empty string ("").
RemoveDir
(sDir As String) As Boolean
Removes a directory from
the FTP server. sDir specifies the
directory to remove. Returns True if successful, or False
otherwise.
SetCurDir
(sDir As String) As Boolean
Sets current directory on
the FTP server to the name specified by sDir.
Returns True if successful, or False otherwise.
StoreFile
(sLocalFilename As String, sRemoteFilename As String) As Boolean
Transfers a file from the
local computer to the FTP server. The
sLocalFilename
parameter specifies the source filename and the
sRemoteFilename
parameter specifies the destination filename. The method returns
True if successful, or False otherwise.
|