Qore FtpPollerUtil Module Reference 1.0
Loading...
Searching...
No Matches
FtpPollerUtil.qm.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
4/* FtpPollerUtil.qm Copyright 2023 Qore Technologies, s.r.o.
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23*/
24
25
26// make sure we have the required qore version
27
28
29/* Version History
30 * 2019-10-16 v1.0: Alzhan Turlybekov <[email protected]>
31*/
32
46namespace FtpPoller {
48class FtpPollerFileEventInfoDataType : public HashDataType {
49
50public:
53 "name": "The name of the file, link, or directory",
54 "size": "The size of the file in bytes",
55 "mtime": "The last modified date/time of the file",
56 "data": "The file's data if `local_dir` is not set; this will be a string unless the `binary` option is "
57 "set to `True`, in which case this key is assigned to the file's binary data; when `local_dir` is "
58 "set, file data is not included in the event but is rather transferred to the local directory",
59 "filepath": "The remote filepath relative to SFTP root directory",
60 "transfer_time": "The relative date/time value giving the time taken to transfer the file",
61 "local_path": "Only included when `local_dir` is set; the target path for the file where the file will "
62 "be moved to in the post event action",
63 };
64
67
68
70 string getDesc();
71
72};
73
75public hashdecl FtpPollerFileEventInfo {
77 string name;
78
80 int size;
81
83 date mtime;
84
86
90
92 string filepath;
93
96
98 *string local_path;
99};
100};
Single file event data description.
Definition: FtpPollerUtil.qm.dox.h:48
string getDesc()
Returns the description.
const FieldDescriptions
Markdown descriptions for hashdecl members.
Definition: FtpPollerUtil.qm.dox.h:52
main FtpPoller namespace
Definition: FtpPollerUtil.qm.dox.h:46
FtpPoller file event hash.
Definition: FtpPollerUtil.qm.dox.h:75
int size
The size of the file in bytes.
Definition: FtpPollerUtil.qm.dox.h:80
string filepath
The remote filepath relative to the FTP root directory.
Definition: FtpPollerUtil.qm.dox.h:92
string name
The name of the file, link, or directory.
Definition: FtpPollerUtil.qm.dox.h:77
date transfer_time
The relative date/time value giving the time taken to transfer the file.
Definition: FtpPollerUtil.qm.dox.h:95
*string local_path
Only included when `local_dir` is set; the target path for the file.
Definition: FtpPollerUtil.qm.dox.h:98
data data
The file's data.
Definition: FtpPollerUtil.qm.dox.h:89
date mtime
The last modified date/time of the file.
Definition: FtpPollerUtil.qm.dox.h:83