cloud-files 5.7.0__py3-none-any.whl → 5.8.0__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.7.0
3
+ Version: 5.8.0
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
@@ -16,12 +16,12 @@ cloudfiles/threaded_queue.py,sha256=Nl4vfXhQ6nDLF8PZpSSBpww0M2zWtcd4DLs3W3BArBw,
16
16
  cloudfiles/typing.py,sha256=f3ZYkNfN9poxhGu5j-P0KCxjCCqSn9HAg5KiIPkjnCg,416
17
17
  cloudfiles_cli/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
18
18
  cloudfiles_cli/__init__.py,sha256=Wftt3R3F21QsHtWqx49ODuqT9zcSr0em7wk48kcH0WM,29
19
- cloudfiles_cli/cloudfiles_cli.py,sha256=k5_bMUcjDM2o-HjgwSaK6rT51t91nYjSAy3xZHf-qSs,38128
20
- cloud_files-5.7.0.dist-info/AUTHORS,sha256=BFVmobgAhaVFI5fqbuqAY5XmBQxe09ZZAsAOTy87hKQ,318
21
- cloud_files-5.7.0.dist-info/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
22
- cloud_files-5.7.0.dist-info/METADATA,sha256=oiedYRc-OIb1u8yRqMKOOKtvEJHj5phtQd-0V-cEqfI,30530
23
- cloud_files-5.7.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
24
- cloud_files-5.7.0.dist-info/entry_points.txt,sha256=xlirb1FVhn1mbcv4IoyMEGumDqKOA4VMVd3drsRQxIg,51
25
- cloud_files-5.7.0.dist-info/pbr.json,sha256=btfjSn_FM-LMcr5pxgz5jRJ_ImTfyOwfBZgFRavgNP8,46
26
- cloud_files-5.7.0.dist-info/top_level.txt,sha256=xPyrST3okJbsmdCF5IC2gYAVxg_aD5AYVTnNo8UuoZU,26
27
- cloud_files-5.7.0.dist-info/RECORD,,
19
+ cloudfiles_cli/cloudfiles_cli.py,sha256=JlP9ocqxZbMANAZhZCQSvvjwe6syovQ1asUzSeAlNYk,38459
20
+ cloud_files-5.8.0.dist-info/AUTHORS,sha256=BFVmobgAhaVFI5fqbuqAY5XmBQxe09ZZAsAOTy87hKQ,318
21
+ cloud_files-5.8.0.dist-info/LICENSE,sha256=Jna4xYE8CCQmaxjr5Fs-wmUBnIQJ1DGcNn9MMjbkprk,1538
22
+ cloud_files-5.8.0.dist-info/METADATA,sha256=uXp_MHaSxsZl91_w6JH5AK57J0NrpGg0i5Wj5GstvYQ,30530
23
+ cloud_files-5.8.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
24
+ cloud_files-5.8.0.dist-info/entry_points.txt,sha256=xlirb1FVhn1mbcv4IoyMEGumDqKOA4VMVd3drsRQxIg,51
25
+ cloud_files-5.8.0.dist-info/pbr.json,sha256=dhdn7QTnwpurvm9-sKoKO96OpKHfH64LwrYqVj-oPTs,46
26
+ cloud_files-5.8.0.dist-info/top_level.txt,sha256=xPyrST3okJbsmdCF5IC2gYAVxg_aD5AYVTnNo8UuoZU,26
27
+ cloud_files-5.8.0.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ {"git_version": "9e3fa7f", "is_release": true}
@@ -182,6 +182,19 @@ def get_mfp(path, recursive):
182
182
 
183
183
  return (many, flat, prefix, suffix)
184
184
 
185
+ @main.command("mkdir")
186
+ @click.argument("paths", nargs=-1)
187
+ def _mkdir(paths):
188
+ """
189
+ Create paths on the local file system.
190
+ """
191
+ for path in paths:
192
+ path = normalize_path(path)
193
+ protocol = get_protocol(path)
194
+
195
+ if protocol == "file":
196
+ mkdir(path.replace("file://", "", 1))
197
+
185
198
  @main.command()
186
199
  @click.argument("source", nargs=-1)
187
200
  @click.argument("destination", nargs=1)
@@ -588,6 +601,7 @@ def touch(
588
601
  ctx, sources,
589
602
  progress, no_sign_request,
590
603
  ):
604
+ """Create file if it doesn't exist."""
591
605
  sources = list(map(normalize_path, sources))
592
606
  sources = [ src.replace("precomputed://", "") for src in sources ]
593
607
  pbar = tqdm(total=len(sources), desc="Touch", disable=(not progress))
@@ -1 +0,0 @@
1
- {"git_version": "cab2668", "is_release": true}