cloud-files 5.0.1__py3-none-any.whl → 5.0.2__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.1
3
+ Version: 5.0.2
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
@@ -14,12 +14,12 @@ cloudfiles/threaded_queue.py,sha256=Nl4vfXhQ6nDLF8PZpSSBpww0M2zWtcd4DLs3W3BArBw,
14
14
  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
- cloudfiles_cli/cloudfiles_cli.py,sha256=Mwoeo0xXFaGx76f1pjU0H-qCGYoscykv_kMfWRxlnxg,34647
18
- cloud_files-5.0.1.dist-info/AUTHORS,sha256=BFVmobgAhaVFI5fqbuqAY5XmBQxe09ZZAsAOTy87hKQ,318
19
- cloud_files-5.0.1.dist-info/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
20
- cloud_files-5.0.1.dist-info/METADATA,sha256=ZlbLvxexsgn0F_bjYRWmCEqy6d6tw22EBAWSe3iSs40,27047
21
- cloud_files-5.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
- cloud_files-5.0.1.dist-info/entry_points.txt,sha256=xlirb1FVhn1mbcv4IoyMEGumDqKOA4VMVd3drsRQxIg,51
23
- cloud_files-5.0.1.dist-info/pbr.json,sha256=fsVPsBKZeRiSu8S18zaNE_nxJYIgmKStJaGJAQiz8lM,46
24
- cloud_files-5.0.1.dist-info/top_level.txt,sha256=xPyrST3okJbsmdCF5IC2gYAVxg_aD5AYVTnNo8UuoZU,26
25
- cloud_files-5.0.1.dist-info/RECORD,,
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,,
@@ -0,0 +1 @@
1
+ {"git_version": "b480c53", "is_release": true}
@@ -255,7 +255,10 @@ def _cp_single(
255
255
  xferpaths = [ x.replace("\n", "") for x in xferpaths ]
256
256
  prefix = os.path.commonprefix(xferpaths)
257
257
  xferpaths = [ x.replace(prefix, "") for x in xferpaths ]
258
- srcpath = cloudpathjoin(srcpath, prefix)
258
+ srcpath = prefix
259
+ if srcpath == "":
260
+ print(f"cloudfiles: No common prefix found. Currently only one bucket at a time is supported for STDIN.")
261
+ return
259
262
  elif many:
260
263
  xferpaths = CloudFiles(
261
264
  srcpath, no_sign_request=no_sign_request
@@ -432,7 +435,10 @@ def _mv_single(
432
435
  xferpaths = [ x.replace("\n", "") for x in xferpaths ]
433
436
  prefix = os.path.commonprefix(xferpaths)
434
437
  xferpaths = [ x.replace(prefix, "") for x in xferpaths ]
435
- srcpath = cloudpathjoin(srcpath, prefix)
438
+ srcpath = prefix
439
+ if srcpath == "":
440
+ print(f"cloudfiles: No common prefix found. Currently only one bucket at a time is supported for STDIN.")
441
+ return
436
442
  elif many:
437
443
  xferpaths = CloudFiles(
438
444
  srcpath, no_sign_request=no_sign_request
@@ -1 +0,0 @@
1
- {"git_version": "4c96852", "is_release": true}