TIpClientFtp() > File methods xHarbour Developers Network  

oTIpClientFtp:mget()

Downloads multiple files from the FTP server.

Syntax

:mget( <cFileSpec>, <cLocalDir> ) --> cFileList

Arguments

<cFileSpec>
This is a character string holding the specification of files to retrieve from the FTP server.
<cLocalDir>
This is a character string holding the name of th directory on the local station where the files should be stored.

Description

Method :mget() downloads all files meeting the file specification <cFileSpec> from the FTP server and stores them in the directory <cLocalDir>. This directory must exist on the local station. If a file exists on the local station having the same name as on the FTP server, the local file is overwritten. The method returns a character string including the names of all downloaded files, separated with INetCrlf().


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe