| INT GetMultipleFiles( |
| |
LPCTSTR lpszLocalDirectory, |
|
| |
LPCTSTR lpszRemoteDirectory, |
|
| |
LPCTSTR lpszFileMask |
|
| ); |
The GetMultipleFiles method copies one or more files from
the server to the local host, using the specified
wildcard.
Parameters
- lpszLocalDirectory
- Pointer to a null-terminated string which specifies the local
directory where the files will be downloaded to. The file pathing and
name conventions should follow Windows conventions. It is permitted
to include environment variables in the local path by surrounding
the variable with percent (%) symbols. Local file paths may also use
standard file URLs. A NULL pointer or empty string specifies that
files should be copied to the current working directory.
- lpszRemoteDirectory
- Pointer to a null-terminated string which specifies the remote
directory where the files will be downloaded from. A NULL pointer or
empty string specifies that the files should be copied from the
current working directory on the server.
- lpszFileMask
- Pointer to a string which specifies the files
that are to be copied from the server to the local system.
The file mask should follow the native conventions used for
wildcard file matches on the server.
Return Value
If the method succeeds, the return value is zero. If the method
fails, the return value is FTP_ERROR. To get extended error
information, call GetLastError.
Remarks
The GetMultipleFiles method is used to transfer files from
the server to the local host which match a specified wildcard
file mask. This method requires that the client be able to
automatically list and parse directory listings from the server,
otherwise an error will be returned. All files will be transferred
using the current file type as specified by the SetFileType
method.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csftpv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|