rclone-api 1.0.83__py2.py3-none-any.whl → 1.0.85__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 +25 -2
- {rclone_api-1.0.83.dist-info → rclone_api-1.0.85.dist-info}/METADATA +1 -1
- {rclone_api-1.0.83.dist-info → rclone_api-1.0.85.dist-info}/RECORD +7 -7
- {rclone_api-1.0.83.dist-info → rclone_api-1.0.85.dist-info}/LICENSE +0 -0
- {rclone_api-1.0.83.dist-info → rclone_api-1.0.85.dist-info}/WHEEL +0 -0
- {rclone_api-1.0.83.dist-info → rclone_api-1.0.85.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.0.83.dist-info → rclone_api-1.0.85.dist-info}/top_level.txt +0 -0
rclone_api/rclone.py
CHANGED
|
@@ -495,7 +495,18 @@ class Rclone:
|
|
|
495
495
|
warnings.warn(f"Error deleting files: {cp.stderr}")
|
|
496
496
|
return out
|
|
497
497
|
|
|
498
|
-
def copy(
|
|
498
|
+
def copy(
|
|
499
|
+
self,
|
|
500
|
+
src: Dir | str,
|
|
501
|
+
dst: Dir | str,
|
|
502
|
+
check: bool | None = None,
|
|
503
|
+
transfers: int | None = None,
|
|
504
|
+
checkers: int | None = None,
|
|
505
|
+
multi_thread_streams: int | None = None,
|
|
506
|
+
low_level_retries: int | None = None,
|
|
507
|
+
retries: int | None = None,
|
|
508
|
+
other_args: list[str] | None = None,
|
|
509
|
+
) -> CompletedProcess:
|
|
499
510
|
"""Copy files from source to destination.
|
|
500
511
|
|
|
501
512
|
Args:
|
|
@@ -506,8 +517,20 @@ class Rclone:
|
|
|
506
517
|
# dst_dir = dst.path.path
|
|
507
518
|
src_dir = convert_to_str(src)
|
|
508
519
|
dst_dir = convert_to_str(dst)
|
|
520
|
+
check = get_check(check)
|
|
521
|
+
checkers = checkers or 1000
|
|
522
|
+
transfers = transfers or 32
|
|
523
|
+
low_level_retries = low_level_retries or 10
|
|
524
|
+
retries = retries or 3
|
|
509
525
|
cmd_list: list[str] = ["copy", src_dir, dst_dir]
|
|
510
|
-
|
|
526
|
+
cmd_list += ["--checkers", str(checkers)]
|
|
527
|
+
cmd_list += ["--transfers", str(transfers)]
|
|
528
|
+
cmd_list += ["--low-level-retries", str(low_level_retries)]
|
|
529
|
+
if multi_thread_streams is not None:
|
|
530
|
+
cmd_list += ["--multi-thread-streams", str(multi_thread_streams)]
|
|
531
|
+
if other_args:
|
|
532
|
+
cmd_list += other_args
|
|
533
|
+
cp = self._run(cmd_list, check=check, capture=False)
|
|
511
534
|
return CompletedProcess.from_subprocess(cp)
|
|
512
535
|
|
|
513
536
|
def purge(self, path: Dir | str) -> CompletedProcess:
|
|
@@ -12,7 +12,7 @@ rclone_api/file.py,sha256=EP5yT2dZ0H2p7CY5n0y5k5pHhIliV25pm8KOwBklUTk,1863
|
|
|
12
12
|
rclone_api/filelist.py,sha256=xbiusvNgaB_b_kQOZoHMJJxn6TWGtPrWd2J042BI28o,767
|
|
13
13
|
rclone_api/group_files.py,sha256=O8Awod4_ILGB4RfatBmiG4vXy9eO0rBhbEaZPr6X_sY,7969
|
|
14
14
|
rclone_api/process.py,sha256=RrMfTe0bndmJ6gBK67ioqNvCstJ8aTC8RlGX1XBLlcw,4191
|
|
15
|
-
rclone_api/rclone.py,sha256=
|
|
15
|
+
rclone_api/rclone.py,sha256=pQ04Qj6UjXFZ5ZuFCC1GoyRFugVbgqv6jx_i026rBmc,33483
|
|
16
16
|
rclone_api/remote.py,sha256=O9WDUFQy9f6oT1HdUbTixK2eg0xtBBm8k4Xl6aa6K00,431
|
|
17
17
|
rclone_api/rpath.py,sha256=8ZA_1wxWtskwcy0I8V2VbjKDmzPkiWd8Q2JQSvh-sYE,2586
|
|
18
18
|
rclone_api/scan_missing_folders.py,sha256=Kulca2Q6WZodt00ATFHkmqqInuoPvBkhTcS9703y6po,4740
|
|
@@ -21,9 +21,9 @@ rclone_api/util.py,sha256=XMrA2m_di4h8JTM-qyx2iyrFZn-l-or_SJOa5tEsDsI,4200
|
|
|
21
21
|
rclone_api/walk.py,sha256=-54NVE8EJcCstwDoaC_UtHm73R2HrZwVwQmsnv55xNU,3369
|
|
22
22
|
rclone_api/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
|
23
23
|
rclone_api/cmd/list_files.py,sha256=x8FHODEilwKqwdiU1jdkeJbLwOqUkUQuDWPo2u_zpf0,741
|
|
24
|
-
rclone_api-1.0.
|
|
25
|
-
rclone_api-1.0.
|
|
26
|
-
rclone_api-1.0.
|
|
27
|
-
rclone_api-1.0.
|
|
28
|
-
rclone_api-1.0.
|
|
29
|
-
rclone_api-1.0.
|
|
24
|
+
rclone_api-1.0.85.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
|
25
|
+
rclone_api-1.0.85.dist-info/METADATA,sha256=sWsjUEHkkwZ0bkYpb-2cvUngmIL6cz8K_nP8_9c5dgc,4489
|
|
26
|
+
rclone_api-1.0.85.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
|
27
|
+
rclone_api-1.0.85.dist-info/entry_points.txt,sha256=XUoTX3m7CWxdj2VAKhEuO0NMOfX2qf-OcEDFwdyk9ZE,72
|
|
28
|
+
rclone_api-1.0.85.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
|
29
|
+
rclone_api-1.0.85.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|