Skip to content

Commit 61ac619

Browse files
[Bot] push changes from Files.com
1 parent deb025d commit 61ac619

7 files changed

Lines changed: 27 additions & 4 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.596
1+
1.2.597

docs/models/File.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
* `parts` (int64): How many parts to fetch?
9393
* `ref` (string):
9494
* `restart` (int64): File byte offset to restart from.
95+
* `copy_behaviors` (boolean): If copying a folder, also copy supported behaviors to the destination folder tree?
9596
* `structure` (string): If copying folder, copy just the structure?
9697
* `with_rename` (boolean): Allow file rename instead of overwrite?
9798
* `buffered_upload` (boolean): If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
@@ -109,6 +110,7 @@ await File.create(path, {
109110
'provided_mtime': "2000-01-01T01:00:00Z",
110111
'restart': 1,
111112
'size': 1,
113+
'copy_behaviors': false,
112114
'with_rename': false,
113115
'buffered_upload': false,
114116
})
@@ -129,6 +131,7 @@ await File.create(path, {
129131
* `ref` (string):
130132
* `restart` (int64): File byte offset to restart from.
131133
* `size` (int64): Size of file.
134+
* `copy_behaviors` (boolean): If copying a folder, also copy supported behaviors to the destination folder tree?
132135
* `structure` (string): If copying folder, copy just the structure?
133136
* `with_rename` (boolean): Allow file rename instead of overwrite?
134137
* `buffered_upload` (boolean): If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.
@@ -365,6 +368,7 @@ const file = await File.find(path)
365368
366369
await file.copy({
367370
'destination': "destination",
371+
'copy_behaviors': false,
368372
'structure': false,
369373
'overwrite': false,
370374
})
@@ -374,6 +378,7 @@ await file.copy({
374378

375379
* `path` (string): Required - Path to operate on.
376380
* `destination` (string): Required - Copy destination path.
381+
* `copy_behaviors` (boolean): If copying a folder, also copy supported behaviors to the destination folder tree?
377382
* `structure` (boolean): Copy structure only?
378383
* `overwrite` (boolean): Overwrite existing file(s) in the destination?
379384

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.596';
15+
var version = '1.2.597';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/File.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
455455
(0, _defineProperty2.default)(this, "setRestart", function (value) {
456456
_this.attributes.restart = value;
457457
});
458+
// boolean # If copying a folder, also copy supported behaviors to the destination folder tree?
459+
(0, _defineProperty2.default)(this, "getCopyBehaviors", function () {
460+
return _this.attributes.copy_behaviors;
461+
});
462+
(0, _defineProperty2.default)(this, "setCopyBehaviors", function (value) {
463+
_this.attributes.copy_behaviors = value;
464+
});
458465
// string # If copying folder, copy just the structure?
459466
(0, _defineProperty2.default)(this, "getStructure", function () {
460467
return _this.attributes.structure;
@@ -731,6 +738,7 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
731738
//
732739
// Parameters:
733740
// destination (required) - string - Copy destination path.
741+
// copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
734742
// structure - boolean - Copy structure only?
735743
// overwrite - boolean - Overwrite existing file(s) in the destination?
736744
(0, _defineProperty2.default)(this, "copy", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee0() {
@@ -1469,6 +1477,7 @@ _File = File;
14691477
// ref - string -
14701478
// restart - int64 - File byte offset to restart from.
14711479
// size - int64 - Size of file.
1480+
// copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
14721481
// structure - string - If copying folder, copy just the structure?
14731482
// with_rename - boolean - Allow file rename instead of overwrite?
14741483
// buffered_upload - boolean - If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.596",
3+
"version": "1.2.597",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.596'
9+
const version = '1.2.597'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/File.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,13 @@ class File {
599599
this.attributes.restart = value
600600
}
601601

602+
// boolean # If copying a folder, also copy supported behaviors to the destination folder tree?
603+
getCopyBehaviors = () => this.attributes.copy_behaviors
604+
605+
setCopyBehaviors = value => {
606+
this.attributes.copy_behaviors = value
607+
}
608+
602609
// string # If copying folder, copy just the structure?
603610
getStructure = () => this.attributes.structure
604611

@@ -764,6 +771,7 @@ class File {
764771
//
765772
// Parameters:
766773
// destination (required) - string - Copy destination path.
774+
// copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
767775
// structure - boolean - Copy structure only?
768776
// overwrite - boolean - Overwrite existing file(s) in the destination?
769777
copy = async (params = {}) => {
@@ -978,6 +986,7 @@ class File {
978986
// ref - string -
979987
// restart - int64 - File byte offset to restart from.
980988
// size - int64 - Size of file.
989+
// copy_behaviors - boolean - If copying a folder, also copy supported behaviors to the destination folder tree?
981990
// structure - string - If copying folder, copy just the structure?
982991
// with_rename - boolean - Allow file rename instead of overwrite?
983992
// buffered_upload - boolean - If true, and the path refers to a destination not stored on Files.com (such as a remote server mount), the upload will be uploaded first to Files.com before being sent to the remote server mount. This can allow clients to upload using parallel parts to a remote server destination that does not offer parallel parts support natively.

0 commit comments

Comments
 (0)