files.com 1.1.54 → 1.1.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/file.md +12 -4
- data/lib/files.com/models/file.rb +4 -0
- data/lib/files.com/version.rb +1 -1
- 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: b31fa365addd85b82c892b0d6eec32a5b2aba077903ffa4e958f22c4e9f4c458
|
4
|
+
data.tar.gz: cd0ca7c60173fbdf05d1d5469ec5fb813fb2286ccd50daac7d1798cb458617f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa0d31e3ff4fd6981322eb0471372acb73bf82c9168eb6f1e1f9c02fecd5b04be69a2d54b46c83f19e19edab73d89534c1c243d17700695334bb4b753ecb1d5a
|
7
|
+
data.tar.gz: 7a8513e8579f1fd829bff2cd33f8b5d9989c94f8e7adbb9207dc6dd0da1aff154aeea052d6c9ea1c083038f59fc3443a93b6617f2d673dc189323323f2f2ee6d
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.55
|
data/docs/file.md
CHANGED
@@ -178,7 +178,8 @@ Files::File.find(path,
|
|
178
178
|
```
|
179
179
|
Files::File.copy(path,
|
180
180
|
destination: "destination",
|
181
|
-
structure: true
|
181
|
+
structure: true,
|
182
|
+
overwrite: true
|
182
183
|
)
|
183
184
|
```
|
184
185
|
|
@@ -187,6 +188,7 @@ Files::File.copy(path,
|
|
187
188
|
* `path` (string): Required - Path to operate on.
|
188
189
|
* `destination` (string): Required - Copy destination path.
|
189
190
|
* `structure` (boolean): Copy structure only?
|
191
|
+
* `overwrite` (boolean): Overwrite existing file(s) in the destination?
|
190
192
|
|
191
193
|
|
192
194
|
---
|
@@ -195,7 +197,8 @@ Files::File.copy(path,
|
|
195
197
|
|
196
198
|
```
|
197
199
|
Files::File.move(path,
|
198
|
-
destination: "destination"
|
200
|
+
destination: "destination",
|
201
|
+
overwrite: true
|
199
202
|
)
|
200
203
|
```
|
201
204
|
|
@@ -203,6 +206,7 @@ Files::File.move(path,
|
|
203
206
|
|
204
207
|
* `path` (string): Required - Path to operate on.
|
205
208
|
* `destination` (string): Required - Move destination path.
|
209
|
+
* `overwrite` (boolean): Overwrite existing file(s) in the destination?
|
206
210
|
|
207
211
|
|
208
212
|
---
|
@@ -302,7 +306,8 @@ file = Files::File.new
|
|
302
306
|
|
303
307
|
file.copy(
|
304
308
|
destination: "destination",
|
305
|
-
structure: true
|
309
|
+
structure: true,
|
310
|
+
overwrite: true
|
306
311
|
)
|
307
312
|
```
|
308
313
|
|
@@ -311,6 +316,7 @@ file.copy(
|
|
311
316
|
* `path` (string): Required - Path to operate on.
|
312
317
|
* `destination` (string): Required - Copy destination path.
|
313
318
|
* `structure` (boolean): Copy structure only?
|
319
|
+
* `overwrite` (boolean): Overwrite existing file(s) in the destination?
|
314
320
|
|
315
321
|
|
316
322
|
---
|
@@ -321,7 +327,8 @@ file.copy(
|
|
321
327
|
file = Files::File.new
|
322
328
|
|
323
329
|
file.move(
|
324
|
-
destination: "destination"
|
330
|
+
destination: "destination",
|
331
|
+
overwrite: true
|
325
332
|
)
|
326
333
|
```
|
327
334
|
|
@@ -329,6 +336,7 @@ file.move(
|
|
329
336
|
|
330
337
|
* `path` (string): Required - Path to operate on.
|
331
338
|
* `destination` (string): Required - Move destination path.
|
339
|
+
* `overwrite` (boolean): Overwrite existing file(s) in the destination?
|
332
340
|
|
333
341
|
|
334
342
|
---
|
@@ -860,6 +860,7 @@ module Files
|
|
860
860
|
# Parameters:
|
861
861
|
# destination (required) - string - Copy destination path.
|
862
862
|
# structure - boolean - Copy structure only?
|
863
|
+
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
863
864
|
def copy(params = {})
|
864
865
|
params ||= {}
|
865
866
|
params[:path] = @attributes[:path]
|
@@ -876,6 +877,7 @@ module Files
|
|
876
877
|
#
|
877
878
|
# Parameters:
|
878
879
|
# destination (required) - string - Move destination path.
|
880
|
+
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
879
881
|
def move(params = {})
|
880
882
|
params ||= {}
|
881
883
|
params[:path] = @attributes[:path]
|
@@ -1029,6 +1031,7 @@ module Files
|
|
1029
1031
|
# Parameters:
|
1030
1032
|
# destination (required) - string - Copy destination path.
|
1031
1033
|
# structure - boolean - Copy structure only?
|
1034
|
+
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
1032
1035
|
def self.copy(path, params = {}, options = {})
|
1033
1036
|
params ||= {}
|
1034
1037
|
params[:path] = path
|
@@ -1045,6 +1048,7 @@ module Files
|
|
1045
1048
|
#
|
1046
1049
|
# Parameters:
|
1047
1050
|
# destination (required) - string - Move destination path.
|
1051
|
+
# overwrite - boolean - Overwrite existing file(s) in the destination?
|
1048
1052
|
def self.move(path, params = {}, options = {})
|
1049
1053
|
params ||= {}
|
1050
1054
|
params[:path] = path
|
data/lib/files.com/version.rb
CHANGED
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.1.
|
4
|
+
version: 1.1.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|