32 const ProviderInfo = <DataProviderInfo>{
33 "type":
"FtpClientDataProvider",
34 "constructor_options": ConstructorOptions,
35 "supports_children":
True,
39 const ConstructorOptions = {
40 "timeout": <DataProviderOptionInfo>{
41 "type": AbstractDataProviderType::get(IntType),
42 "desc":
"I/O timeout to use in milliseconds",
44 "url": <DataProviderOptionInfo>{
45 "type": AbstractDataProviderType::get(StringType),
46 "desc":
"A URL for an FTP or FTPS connection",
55 "create-file": Class::forName(
"FtpClientDataProvider::FtpClientCreateFileDataProvider"),
56 "delete": Class::forName(
"FtpClientDataProvider::FtpClientDeleteDataProvider"),
57 "get-file": Class::forName(
"FtpClientDataProvider::FtpClientGetFileDataProvider"),
58 "list": Class::forName(
"FtpClientDataProvider::FtpClientListDataProvider"),
59 "mkdir": Class::forName(
"FtpClientDataProvider::FtpClientMkdirDataProvider"),
60 "move": Class::forName(
"FtpClientDataProvider::FtpClientMoveDataProvider"),
61 "stat": Class::forName(
"FtpClientDataProvider::FtpClientStatDataProvider"),
90 static string getPath(FtpClient ftp,
string path1);
string getName()
Returns the data provider name.
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
*list< hash< DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
*AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
static FtpClient getFtpClientConnection(hash< auto > options)
Returns an FTP connection from constructor options.
constructor(FtpClient ftp)
Creates the object from an FTP connection.
*string getDesc()
Returns the data provider description.
constructor(*hash< auto > options)
Creates the object from constructor options.
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
static string getPath(FtpClient ftp, string path1)
Returns the path based on the FtpClient's base path.
Qore FtpClientDataProvider module definition.
Definition: FtpClientCreateFileDataProvider.qc.dox.h:26