files.com 1.0.197 → 1.0.198
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/File.md +4 -0
- package/docs/models/Folder.md +2 -0
- package/lib/models/File.js +3 -0
- package/lib/models/Folder.js +3 -0
- package/package.json +1 -1
- package/src/models/File.js +3 -0
- package/src/models/Folder.js +3 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.198
|
package/docs/models/File.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"display_name": "file.txt",
|
9
9
|
"type": "file",
|
10
10
|
"size": 1024,
|
11
|
+
"created_at": "2000-01-01T01:00:00Z",
|
11
12
|
"mtime": "2000-01-01T01:00:00Z",
|
12
13
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
13
14
|
"crc32": "70976923",
|
@@ -33,6 +34,7 @@
|
|
33
34
|
* `display_name` (string): File/Folder display name
|
34
35
|
* `type` (string): Type: `directory` or `file`.
|
35
36
|
* `size` (int64): File/Folder size
|
37
|
+
* `created_at` (date-time): File created date/time
|
36
38
|
* `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
|
37
39
|
* `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
|
38
40
|
* `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
|
@@ -139,6 +141,7 @@ await file.download({
|
|
139
141
|
"display_name": "file.txt",
|
140
142
|
"type": "file",
|
141
143
|
"size": 1024,
|
144
|
+
"created_at": "2000-01-01T01:00:00Z",
|
142
145
|
"mtime": "2000-01-01T01:00:00Z",
|
143
146
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
144
147
|
"crc32": "70976923",
|
@@ -188,6 +191,7 @@ await file.update({
|
|
188
191
|
"display_name": "file.txt",
|
189
192
|
"type": "file",
|
190
193
|
"size": 1024,
|
194
|
+
"created_at": "2000-01-01T01:00:00Z",
|
191
195
|
"mtime": "2000-01-01T01:00:00Z",
|
192
196
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
193
197
|
"crc32": "70976923",
|
package/docs/models/Folder.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"display_name": "file.txt",
|
9
9
|
"type": "file",
|
10
10
|
"size": 1024,
|
11
|
+
"created_at": "2000-01-01T01:00:00Z",
|
11
12
|
"mtime": "2000-01-01T01:00:00Z",
|
12
13
|
"provided_mtime": "2000-01-01T01:00:00Z",
|
13
14
|
"crc32": "70976923",
|
@@ -33,6 +34,7 @@
|
|
33
34
|
* `display_name` (string): File/Folder display name
|
34
35
|
* `type` (string): Type: `directory` or `file`.
|
35
36
|
* `size` (int64): File/Folder size
|
37
|
+
* `created_at` (date-time): File created date/time
|
36
38
|
* `mtime` (date-time): File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
|
37
39
|
* `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
|
38
40
|
* `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
|
package/lib/models/File.js
CHANGED
@@ -209,6 +209,9 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
|
|
209
209
|
(0, _defineProperty2.default)(this, "setSize", function (value) {
|
210
210
|
_this.attributes.size = value;
|
211
211
|
});
|
212
|
+
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
213
|
+
return _this.attributes.created_at;
|
214
|
+
});
|
212
215
|
(0, _defineProperty2.default)(this, "getMtime", function () {
|
213
216
|
return _this.attributes.mtime;
|
214
217
|
});
|
package/lib/models/Folder.js
CHANGED
@@ -75,6 +75,9 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
75
75
|
(0, _defineProperty2.default)(this, "setSize", function (value) {
|
76
76
|
_this.attributes.size = value;
|
77
77
|
});
|
78
|
+
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
79
|
+
return _this.attributes.created_at;
|
80
|
+
});
|
78
81
|
(0, _defineProperty2.default)(this, "getMtime", function () {
|
79
82
|
return _this.attributes.mtime;
|
80
83
|
});
|
package/package.json
CHANGED
package/src/models/File.js
CHANGED
@@ -221,6 +221,9 @@ class File {
|
|
221
221
|
this.attributes.size = value
|
222
222
|
}
|
223
223
|
|
224
|
+
// date-time # File created date/time
|
225
|
+
getCreatedAt = () => this.attributes.created_at
|
226
|
+
|
224
227
|
// date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
|
225
228
|
getMtime = () => this.attributes.mtime
|
226
229
|
|
package/src/models/Folder.js
CHANGED
@@ -52,6 +52,9 @@ class Folder {
|
|
52
52
|
this.attributes.size = value
|
53
53
|
}
|
54
54
|
|
55
|
+
// date-time # File created date/time
|
56
|
+
getCreatedAt = () => this.attributes.created_at
|
57
|
+
|
55
58
|
// date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
|
56
59
|
getMtime = () => this.attributes.mtime
|
57
60
|
|