files.com 1.0.260 → 1.0.261

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c8cab32ed97e2d6b88de5da06fa5926be7a1e31dd7daf2411e2d5397ed6021b
4
- data.tar.gz: d112e7aaa786680a3d8b8d8d469a435247d927fd65c97040df388af9cf6bb06f
3
+ metadata.gz: b1dc3cd0d3d0a6dda0844ff67fee98ba92a627b1455e2921cdc80affc6b573cf
4
+ data.tar.gz: 29483fba0113db59f03ccdbbcd5800342d2c090592915839d8332d4c8689616b
5
5
  SHA512:
6
- metadata.gz: 00b69c9796654f39ab39a72a589a0cafd16529a6e31e39b2e89ec7ec7f023674a54694edb52743e868ebeb1689e191670a66cd89e21a5a461764747ffadf06c2
7
- data.tar.gz: b63249367bd7246570c9646a753a8a24f3c249a982a7c7a910e15195648cfcfefbb49092438497a465b2a9002cd25399c02347855b06c509cac65f714bf4d93a
6
+ metadata.gz: c5264ac1a65a7bb9e0df48486cff95b2fa7beac51299f7a100328c5a9240f4c0c320e3b0d68116dbd3cf56102fd3b1896623105b5ad15d2b20cd0193e3453c52
7
+ data.tar.gz: 125af09d7850f5bb1300e1e4d97d7ca5c8e8ca9ec8e125d8f671ae621d7b91f6b40724af8938b7e59a5498dda48e8f3c3420426583a91b38ba11232307ae8414
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.260
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.260
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-18 00:00:00.000000000 Z
11
+ date: 2022-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable