rclone-api 1.0.54__py2.py3-none-any.whl → 1.0.56__py2.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.
- rclone_api/rclone.py +13 -10
- {rclone_api-1.0.54.dist-info → rclone_api-1.0.56.dist-info}/METADATA +1 -1
- {rclone_api-1.0.54.dist-info → rclone_api-1.0.56.dist-info}/RECORD +7 -7
- {rclone_api-1.0.54.dist-info → rclone_api-1.0.56.dist-info}/LICENSE +0 -0
- {rclone_api-1.0.54.dist-info → rclone_api-1.0.56.dist-info}/WHEEL +0 -0
- {rclone_api-1.0.54.dist-info → rclone_api-1.0.56.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.0.54.dist-info → rclone_api-1.0.56.dist-info}/top_level.txt +0 -0
rclone_api/rclone.py
CHANGED
@@ -283,6 +283,7 @@ class Rclone:
|
|
283
283
|
Args:
|
284
284
|
payload: Dictionary of source and destination file paths
|
285
285
|
"""
|
286
|
+
other_args = other_args or []
|
286
287
|
checkers = checkers or 1000
|
287
288
|
transfers = transfers or 32
|
288
289
|
verbose = get_verbose(verbose)
|
@@ -318,9 +319,15 @@ class Rclone:
|
|
318
319
|
|
319
320
|
if verbose:
|
320
321
|
nfiles = len(files)
|
321
|
-
files_fqdn = [f"{src_path}/{f}" for f in files]
|
322
|
-
|
323
|
-
|
322
|
+
files_fqdn = [f" {src_path}/{f}" for f in files]
|
323
|
+
print(f"Copying {nfiles} files:")
|
324
|
+
chunk_size = 100
|
325
|
+
for i in range(0, nfiles, chunk_size):
|
326
|
+
chunk = files_fqdn[i : i + chunk_size]
|
327
|
+
files_str = "\n".join(chunk)
|
328
|
+
print(f"{files_str}")
|
329
|
+
# files_str = "\n".join(files_fqdn)
|
330
|
+
# print(f"Copying {nfiles} files: \n{files_str}")
|
324
331
|
|
325
332
|
# print(include_files_txt)
|
326
333
|
cmd_list: list[str] = [
|
@@ -335,15 +342,11 @@ class Rclone:
|
|
335
342
|
str(transfers),
|
336
343
|
]
|
337
344
|
if verbose:
|
338
|
-
if
|
339
|
-
["-v" in x for x in other_args]
|
340
|
-
):
|
345
|
+
if not any(["-v" in x for x in other_args]):
|
341
346
|
cmd_list.append("-vvvv")
|
342
|
-
if
|
343
|
-
["--progress" in x for x in other_args]
|
344
|
-
):
|
347
|
+
if not any(["--progress" in x for x in other_args]):
|
345
348
|
cmd_list.append("--progress")
|
346
|
-
if other_args
|
349
|
+
if other_args:
|
347
350
|
cmd_list += other_args
|
348
351
|
out = self._run(cmd_list, capture=not verbose)
|
349
352
|
return out
|
@@ -12,16 +12,16 @@ rclone_api/file.py,sha256=YtR5Y6c0YfXTS-sReOy2UgiSnafcAeO6b2hnbojBQD4,1423
|
|
12
12
|
rclone_api/filelist.py,sha256=xbiusvNgaB_b_kQOZoHMJJxn6TWGtPrWd2J042BI28o,767
|
13
13
|
rclone_api/group_files.py,sha256=kOHh6ysFDkxjldSwvW6KqmiADUC1yFCdrZRY57TvbGY,5328
|
14
14
|
rclone_api/process.py,sha256=RrMfTe0bndmJ6gBK67ioqNvCstJ8aTC8RlGX1XBLlcw,4191
|
15
|
-
rclone_api/rclone.py,sha256=
|
15
|
+
rclone_api/rclone.py,sha256=AiRFXHVS9mylqT2395UHVzDVYC7jybiVAGwxr-keOlk,24463
|
16
16
|
rclone_api/remote.py,sha256=c9hlRKBCg1BFB9MCINaQIoCg10qyAkeqiS4brl8ce-8,343
|
17
17
|
rclone_api/rpath.py,sha256=8ZA_1wxWtskwcy0I8V2VbjKDmzPkiWd8Q2JQSvh-sYE,2586
|
18
18
|
rclone_api/util.py,sha256=IWNOOcPE0xdKvehzXQ9okIppGDBYWJPIfdbUME8BFVM,4015
|
19
19
|
rclone_api/walk.py,sha256=kca0t1GAnF6FLclN01G8NG__Qe-ggodLtAbQSHyVPng,2968
|
20
20
|
rclone_api/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
21
21
|
rclone_api/cmd/list_files.py,sha256=x8FHODEilwKqwdiU1jdkeJbLwOqUkUQuDWPo2u_zpf0,741
|
22
|
-
rclone_api-1.0.
|
23
|
-
rclone_api-1.0.
|
24
|
-
rclone_api-1.0.
|
25
|
-
rclone_api-1.0.
|
26
|
-
rclone_api-1.0.
|
27
|
-
rclone_api-1.0.
|
22
|
+
rclone_api-1.0.56.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
23
|
+
rclone_api-1.0.56.dist-info/METADATA,sha256=lFNPrMz55v0OUaYWtVHeuJo00qeKSag9e2YiK1feUPs,4489
|
24
|
+
rclone_api-1.0.56.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
25
|
+
rclone_api-1.0.56.dist-info/entry_points.txt,sha256=XUoTX3m7CWxdj2VAKhEuO0NMOfX2qf-OcEDFwdyk9ZE,72
|
26
|
+
rclone_api-1.0.56.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
27
|
+
rclone_api-1.0.56.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|