rclone-api 1.0.53__py2.py3-none-any.whl → 1.0.55__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 +23 -7
- {rclone_api-1.0.53.dist-info → rclone_api-1.0.55.dist-info}/METADATA +1 -1
- {rclone_api-1.0.53.dist-info → rclone_api-1.0.55.dist-info}/RECORD +7 -7
- {rclone_api-1.0.53.dist-info → rclone_api-1.0.55.dist-info}/LICENSE +0 -0
- {rclone_api-1.0.53.dist-info → rclone_api-1.0.55.dist-info}/WHEEL +0 -0
- {rclone_api-1.0.53.dist-info → rclone_api-1.0.55.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.0.53.dist-info → rclone_api-1.0.55.dist-info}/top_level.txt +0 -0
rclone_api/rclone.py
CHANGED
@@ -274,6 +274,8 @@ class Rclone:
|
|
274
274
|
files: list[str],
|
275
275
|
check=True,
|
276
276
|
verbose: bool | None = None,
|
277
|
+
checkers: int | None = None,
|
278
|
+
transfers: int | None = None,
|
277
279
|
other_args: list[str] | None = None,
|
278
280
|
) -> list[CompletedProcess]:
|
279
281
|
"""Copy multiple files from source to destination.
|
@@ -281,6 +283,8 @@ class Rclone:
|
|
281
283
|
Args:
|
282
284
|
payload: Dictionary of source and destination file paths
|
283
285
|
"""
|
286
|
+
checkers = checkers or 1000
|
287
|
+
transfers = transfers or 32
|
284
288
|
verbose = get_verbose(verbose)
|
285
289
|
payload: list[str] = convert_to_filestr_list(files)
|
286
290
|
if len(payload) == 0:
|
@@ -314,9 +318,15 @@ class Rclone:
|
|
314
318
|
|
315
319
|
if verbose:
|
316
320
|
nfiles = len(files)
|
317
|
-
files_fqdn = [f"{src_path}/{f}" for f in files]
|
318
|
-
|
319
|
-
|
321
|
+
files_fqdn = [f" {src_path}/{f}" for f in files]
|
322
|
+
print(f"Copying {nfiles} files:")
|
323
|
+
chunk_size = 100
|
324
|
+
for i in range(0, nfiles, chunk_size):
|
325
|
+
chunk = files_fqdn[i : i + chunk_size]
|
326
|
+
files_str = "\n".join(chunk)
|
327
|
+
print(f"{files_str}")
|
328
|
+
# files_str = "\n".join(files_fqdn)
|
329
|
+
# print(f"Copying {nfiles} files: \n{files_str}")
|
320
330
|
|
321
331
|
# print(include_files_txt)
|
322
332
|
cmd_list: list[str] = [
|
@@ -326,13 +336,19 @@ class Rclone:
|
|
326
336
|
"--files-from",
|
327
337
|
str(include_files_txt),
|
328
338
|
"--checkers",
|
329
|
-
|
339
|
+
str(checkers),
|
330
340
|
"--transfers",
|
331
|
-
|
332
|
-
"--progress",
|
341
|
+
str(transfers),
|
333
342
|
]
|
334
343
|
if verbose:
|
335
|
-
|
344
|
+
if other_args is not None and not any(
|
345
|
+
["-v" in x for x in other_args]
|
346
|
+
):
|
347
|
+
cmd_list.append("-vvvv")
|
348
|
+
if other_args is not None and not any(
|
349
|
+
["--progress" in x for x in other_args]
|
350
|
+
):
|
351
|
+
cmd_list.append("--progress")
|
336
352
|
if other_args is not None:
|
337
353
|
cmd_list += other_args
|
338
354
|
out = self._run(cmd_list, capture=not verbose)
|
@@ -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=m2BW2KLU8wR2H_lklnNjYwHBGHH3QyIx7GP2402rUVQ,24599
|
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.55.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
23
|
+
rclone_api-1.0.55.dist-info/METADATA,sha256=RTbrfIqqyK9E0Qgxb1CFXmfGC-XNCswuEQsslGiYo2Y,4489
|
24
|
+
rclone_api-1.0.55.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
25
|
+
rclone_api-1.0.55.dist-info/entry_points.txt,sha256=XUoTX3m7CWxdj2VAKhEuO0NMOfX2qf-OcEDFwdyk9ZE,72
|
26
|
+
rclone_api-1.0.55.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
27
|
+
rclone_api-1.0.55.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|