files.com 1.0.260 → 1.0.261
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.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/folder.md +5 -1
- data/lib/files.com/models/folder.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1dc3cd0d3d0a6dda0844ff67fee98ba92a627b1455e2921cdc80affc6b573cf
|
|
4
|
+
data.tar.gz: 29483fba0113db59f03ccdbbcd5800342d2c090592915839d8332d4c8689616b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5264ac1a65a7bb9e0df48486cff95b2fa7beac51299f7a100328c5a9240f4c0c320e3b0d68116dbd3cf56102fd3b1896623105b5ad15d2b20cd0193e3453c52
|
|
7
|
+
data.tar.gz: 125af09d7850f5bb1300e1e4d97d7ca5c8e8ca9ec8e125d8f671ae621d7b91f6b40724af8938b7e59a5498dda48e8f3c3420426583a91b38ba11232307ae8414
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.261
|
data/docs/folder.md
CHANGED
|
@@ -50,6 +50,7 @@ Files::Dir is an alias of Files::Folder
|
|
|
50
50
|
* `priority_color` (string): Bookmark/priority color of file/folder
|
|
51
51
|
* `preview_id` (int64): File preview ID
|
|
52
52
|
* `preview` (Preview): File preview
|
|
53
|
+
* `mkdir_parents` (boolean): Create parent directories if they do not exist?
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
---
|
|
@@ -83,9 +84,12 @@ Files::Folder.list_for(path,
|
|
|
83
84
|
## Create folder
|
|
84
85
|
|
|
85
86
|
```
|
|
86
|
-
Files::Folder.create(path
|
|
87
|
+
Files::Folder.create(path,
|
|
88
|
+
mkdir_parents: true
|
|
89
|
+
)
|
|
87
90
|
```
|
|
88
91
|
|
|
89
92
|
### Parameters
|
|
90
93
|
|
|
91
94
|
* `path` (string): Required - Path to operate on.
|
|
95
|
+
* `mkdir_parents` (boolean): Create parent directories if they do not exist?
|
|
@@ -294,6 +294,15 @@ module Files
|
|
|
294
294
|
@attributes[:preview] = value
|
|
295
295
|
end
|
|
296
296
|
|
|
297
|
+
# boolean - Create parent directories if they do not exist?
|
|
298
|
+
def mkdir_parents
|
|
299
|
+
@attributes[:mkdir_parents]
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
def mkdir_parents=(value)
|
|
303
|
+
@attributes[:mkdir_parents] = value
|
|
304
|
+
end
|
|
305
|
+
|
|
297
306
|
def save
|
|
298
307
|
new_obj = Folder.create(path, @attributes, @options)
|
|
299
308
|
@attributes = new_obj.attributes
|
|
@@ -327,6 +336,7 @@ module Files
|
|
|
327
336
|
|
|
328
337
|
# Parameters:
|
|
329
338
|
# path (required) - string - Path to operate on.
|
|
339
|
+
# mkdir_parents - boolean - Create parent directories if they do not exist?
|
|
330
340
|
def self.create(path, params = {}, options = {})
|
|
331
341
|
params ||= {}
|
|
332
342
|
params[:path] = path
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: files.com
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.261
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- files.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-04-
|
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|