files.com 1.0.178 → 1.0.179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_VERSION +1 -1
- package/lib/models/Folder.js +6 -0
- package/package.json +1 -1
- package/src/models/Folder.js +8 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.179
|
package/lib/models/Folder.js
CHANGED
@@ -139,6 +139,12 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
139
139
|
(0, _defineProperty2.default)(this, "setPreview", function (value) {
|
140
140
|
_this.attributes.preview = value;
|
141
141
|
});
|
142
|
+
(0, _defineProperty2.default)(this, "getMkdirParents", function () {
|
143
|
+
return _this.attributes.mkdir_parents;
|
144
|
+
});
|
145
|
+
(0, _defineProperty2.default)(this, "setMkdirParents", function (value) {
|
146
|
+
_this.attributes.mkdir_parents = value;
|
147
|
+
});
|
142
148
|
(0, _defineProperty2.default)(this, "save", function () {
|
143
149
|
var newObject = Folder.create(_this.attributes.path, _this.attributes, _this.options);
|
144
150
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
package/package.json
CHANGED
package/src/models/Folder.js
CHANGED
@@ -135,6 +135,13 @@ class Folder {
|
|
135
135
|
this.attributes.preview = value
|
136
136
|
}
|
137
137
|
|
138
|
+
// boolean # Create parent directories if they do not exist?
|
139
|
+
getMkdirParents = () => this.attributes.mkdir_parents
|
140
|
+
|
141
|
+
setMkdirParents = value => {
|
142
|
+
this.attributes.mkdir_parents = value
|
143
|
+
}
|
144
|
+
|
138
145
|
|
139
146
|
save = () => {
|
140
147
|
const newObject = Folder.create(this.attributes.path, this.attributes, this.options)
|
@@ -194,6 +201,7 @@ class Folder {
|
|
194
201
|
|
195
202
|
// Parameters:
|
196
203
|
// path (required) - string - Path to operate on.
|
204
|
+
// mkdir_parents - boolean - Create parent directories if they do not exist?
|
197
205
|
static create = async (path, params = {}, options = {}) => {
|
198
206
|
if (!isObject(params)) {
|
199
207
|
throw new Error(`Bad parameter: params must be of type object, received ${getType(params)}`)
|