google-cloud-storage 1.48.1 → 1.49.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8a2a526a042472efc68bca61aecd13daab3329949890543c73e499d19b1bf91
|
4
|
+
data.tar.gz: 152a633c29980d1c645e8d0c96100f60d245ea1d1844407bb12c8a689b231892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8086edce323f96ad7826ab121e5b3fc12d94a4695838259e5c7f90f0607414c6f6516c63318888c2d8022a4b0440692d06d57e016081a35f06c27c6591a1269a
|
7
|
+
data.tar.gz: 286c58007dc3ef084ed5947e01a38aefa09aa01b7eb121f2a99eab34aef8d1577cd3c8c738d7b58d6ef51f5c1817a1618380b35c961bdb5ff5ac159c8d0f941e
|
data/CHANGELOG.md
CHANGED
@@ -1319,6 +1319,9 @@ module Google
|
|
1319
1319
|
# as distinct results. The default is `false`. For more information,
|
1320
1320
|
# see [Object Versioning
|
1321
1321
|
# ](https://cloud.google.com/storage/docs/object-versioning).
|
1322
|
+
# @param [Boolean] include_folders_as_prefixes If `true`, will also include
|
1323
|
+
# folders and managed folders, besides objects, in the returned prefixes.
|
1324
|
+
# Only applicable if delimiter is set to '/'.
|
1322
1325
|
#
|
1323
1326
|
# @return [Array<Google::Cloud::Storage::File>] (See
|
1324
1327
|
# {Google::Cloud::Storage::File::List})
|
@@ -1346,17 +1349,19 @@ module Google
|
|
1346
1349
|
# end
|
1347
1350
|
#
|
1348
1351
|
def files prefix: nil, delimiter: nil, token: nil, max: nil,
|
1349
|
-
versions: nil, match_glob: nil
|
1352
|
+
versions: nil, match_glob: nil, include_folders_as_prefixes: nil
|
1350
1353
|
ensure_service!
|
1351
1354
|
gapi = service.list_files name, prefix: prefix, delimiter: delimiter,
|
1352
1355
|
token: token, max: max,
|
1353
1356
|
versions: versions,
|
1354
1357
|
user_project: user_project,
|
1355
|
-
match_glob: match_glob
|
1358
|
+
match_glob: match_glob,
|
1359
|
+
include_folders_as_prefixes: include_folders_as_prefixes
|
1356
1360
|
File::List.from_gapi gapi, service, name, prefix, delimiter, max,
|
1357
1361
|
versions,
|
1358
1362
|
user_project: user_project,
|
1359
|
-
match_glob: match_glob
|
1363
|
+
match_glob: match_glob,
|
1364
|
+
include_folders_as_prefixes: include_folders_as_prefixes
|
1360
1365
|
end
|
1361
1366
|
alias find_files files
|
1362
1367
|
|
@@ -165,8 +165,8 @@ module Google
|
|
165
165
|
# Google::Apis::StorageV1::Objects object.
|
166
166
|
def self.from_gapi gapi_list, service, bucket = nil, prefix = nil,
|
167
167
|
delimiter = nil, max = nil, versions = nil,
|
168
|
-
user_project: nil,
|
169
|
-
|
168
|
+
user_project: nil, match_glob: nil,
|
169
|
+
include_folders_as_prefixes: nil
|
170
170
|
files = new(Array(gapi_list.items).map do |gapi_object|
|
171
171
|
File.from_gapi gapi_object, service, user_project: user_project
|
172
172
|
end)
|
@@ -180,6 +180,7 @@ module Google
|
|
180
180
|
files.instance_variable_set :@versions, versions
|
181
181
|
files.instance_variable_set :@user_project, user_project
|
182
182
|
files.instance_variable_set :@match_glob, match_glob
|
183
|
+
files.instance_variable_set :@include_folders_as_prefixes, include_folders_as_prefixes
|
183
184
|
files
|
184
185
|
end
|
185
186
|
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
# Retrieves a list of files matching the criteria.
|
364
364
|
def list_files bucket_name, delimiter: nil, max: nil, token: nil,
|
365
365
|
prefix: nil, versions: nil, user_project: nil,
|
366
|
-
match_glob: nil,
|
366
|
+
match_glob: nil, include_folders_as_prefixes: nil,
|
367
367
|
options: {}
|
368
368
|
execute do
|
369
369
|
service.list_objects \
|
@@ -372,6 +372,7 @@ module Google
|
|
372
372
|
versions: versions,
|
373
373
|
user_project: user_project(user_project),
|
374
374
|
match_glob: match_glob,
|
375
|
+
include_folders_as_prefixes: include_folders_as_prefixes,
|
375
376
|
options: options
|
376
377
|
end
|
377
378
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|