cloud-files 5.0.2__py3-none-any.whl → 5.0.3__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloud-files
3
- Version: 5.0.2
3
+ Version: 5.0.3
4
4
  Summary: Fast access to cloud storage and local FS.
5
5
  Home-page: https://github.com/seung-lab/cloud-files/
6
6
  Author: William Silversmith
@@ -4,7 +4,7 @@ cloudfiles/compression.py,sha256=pqYdpu5vfFv-094BpfZ2pgRjVu7ESM9pAZC09P6E8bY,615
4
4
  cloudfiles/connectionpools.py,sha256=aL8RiSjRepECfgAFmJcz80aJFKbou7hsbuEgugDKwB8,4814
5
5
  cloudfiles/exceptions.py,sha256=N0oGQNG-St6RvnT8e5p_yC_E61q2kgAe2scwAL0F49c,843
6
6
  cloudfiles/gcs.py,sha256=unqu5KxGKaPq6N4QeHSpCDdtnK1BzPOAerTZ8FLt2_4,3820
7
- cloudfiles/interfaces.py,sha256=rc6jblcdxfvsPAyiOrosY_kTn7idHftS026prG84x2M,43389
7
+ cloudfiles/interfaces.py,sha256=jAILgy6v67L0tV4QXe03wm6fzb2nJ3PJQod8IPE_c7k,43601
8
8
  cloudfiles/lib.py,sha256=9YFGMCy0mi23baqtsr-f5Gd1ewAGvD7x3UVNt772Z9E,5317
9
9
  cloudfiles/paths.py,sha256=VFgqrOqI7lTZ2EE7Ktg6I343TVXYEhn8GHTfJZZ9giE,11435
10
10
  cloudfiles/resumable_tools.py,sha256=NyuSoGh1SaP5akrHCpd9kgy2-JruEWrHW9lvJxV7jpE,6711
@@ -15,11 +15,11 @@ cloudfiles/typing.py,sha256=f3ZYkNfN9poxhGu5j-P0KCxjCCqSn9HAg5KiIPkjnCg,416
15
15
  cloudfiles_cli/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
16
16
  cloudfiles_cli/__init__.py,sha256=Wftt3R3F21QsHtWqx49ODuqT9zcSr0em7wk48kcH0WM,29
17
17
  cloudfiles_cli/cloudfiles_cli.py,sha256=_2Amjp3vsdq7vQgF2utD6BJqjOPKXOTjrJyehnlojpQ,34893
18
- cloud_files-5.0.2.dist-info/AUTHORS,sha256=BFVmobgAhaVFI5fqbuqAY5XmBQxe09ZZAsAOTy87hKQ,318
19
- cloud_files-5.0.2.dist-info/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
20
- cloud_files-5.0.2.dist-info/METADATA,sha256=ZrdyciuDQruZS6GjOll-FxtWl1sRHE2DwszlHVXVdPA,27047
21
- cloud_files-5.0.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
- cloud_files-5.0.2.dist-info/entry_points.txt,sha256=xlirb1FVhn1mbcv4IoyMEGumDqKOA4VMVd3drsRQxIg,51
23
- cloud_files-5.0.2.dist-info/pbr.json,sha256=1Ut3ABIh0b-00huoRZVkC1bPqCTSbdQ3syVtVqYnIU4,46
24
- cloud_files-5.0.2.dist-info/top_level.txt,sha256=xPyrST3okJbsmdCF5IC2gYAVxg_aD5AYVTnNo8UuoZU,26
25
- cloud_files-5.0.2.dist-info/RECORD,,
18
+ cloud_files-5.0.3.dist-info/AUTHORS,sha256=BFVmobgAhaVFI5fqbuqAY5XmBQxe09ZZAsAOTy87hKQ,318
19
+ cloud_files-5.0.3.dist-info/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
20
+ cloud_files-5.0.3.dist-info/METADATA,sha256=6RC035KuQ-n9IpIF6sg0GHxwroosICXnN4FYaFt4PxY,27047
21
+ cloud_files-5.0.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
+ cloud_files-5.0.3.dist-info/entry_points.txt,sha256=xlirb1FVhn1mbcv4IoyMEGumDqKOA4VMVd3drsRQxIg,51
23
+ cloud_files-5.0.3.dist-info/pbr.json,sha256=-UTtoPt3FDMBB8OqiRiTxUtrkkbNmK8L__x7a3Q04i0,46
24
+ cloud_files-5.0.3.dist-info/top_level.txt,sha256=xPyrST3okJbsmdCF5IC2gYAVxg_aD5AYVTnNo8UuoZU,26
25
+ cloud_files-5.0.3.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ {"git_version": "589559d", "is_release": true}
cloudfiles/interfaces.py CHANGED
@@ -808,18 +808,24 @@ class GoogleCloudStorageInterface(StorageInterface):
808
808
  path = posixpath.join(layer_path, prefix)
809
809
 
810
810
  delimiter = '/' if flat else None
811
+
811
812
  blobs = self._bucket.list_blobs(
812
813
  prefix=path,
813
814
  delimiter=delimiter,
814
815
  )
815
816
 
816
- if blobs.prefixes:
817
- yield from (
818
- item.removeprefix(path)
819
- for item in blobs.prefixes
820
- )
821
-
817
+ first = True
822
818
  for blob in blobs:
819
+ # This awkward construction is necessary
820
+ # because the request that populates prefixes
821
+ # isn't made until the iterator is activated.
822
+ if first and blobs.prefixes:
823
+ yield from (
824
+ item.removeprefix(path)
825
+ for item in blobs.prefixes
826
+ )
827
+ first = False
828
+
823
829
  filename = blob.name.removeprefix(layer_path)
824
830
  if not filename:
825
831
  continue
@@ -1 +0,0 @@
1
- {"git_version": "b480c53", "is_release": true}