rclone-api 1.5.47__py3-none-any.whl → 1.5.48__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/config.py +9 -6
- {rclone_api-1.5.47.dist-info → rclone_api-1.5.48.dist-info}/METADATA +1 -1
- {rclone_api-1.5.47.dist-info → rclone_api-1.5.48.dist-info}/RECORD +7 -7
- {rclone_api-1.5.47.dist-info → rclone_api-1.5.48.dist-info}/WHEEL +0 -0
- {rclone_api-1.5.47.dist-info → rclone_api-1.5.48.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.5.47.dist-info → rclone_api-1.5.48.dist-info}/licenses/LICENSE +0 -0
- {rclone_api-1.5.47.dist-info → rclone_api-1.5.48.dist-info}/top_level.txt +0 -0
rclone_api/config.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import os
|
2
|
+
import shutil
|
2
3
|
from dataclasses import dataclass, field
|
3
4
|
from pathlib import Path
|
4
5
|
from typing import Any, Dict, List
|
@@ -89,14 +90,16 @@ def find_conf_file(rclone: Any | None = None) -> Path | None:
|
|
89
90
|
return conf
|
90
91
|
|
91
92
|
if rclone is None:
|
92
|
-
|
93
|
+
has_rclone = shutil.which("rclone")
|
94
|
+
if not has_rclone:
|
95
|
+
from rclone_api.install import rclone_download
|
93
96
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
+
err = rclone_download(Path("."))
|
98
|
+
if isinstance(err, Exception):
|
99
|
+
import warnings
|
97
100
|
|
98
|
-
|
99
|
-
|
101
|
+
warnings.warn(f"rclone_download failed: {err}")
|
102
|
+
return None
|
100
103
|
cmd_list: list[str] = [
|
101
104
|
"rclone",
|
102
105
|
"config",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
rclone_api/__init__.py,sha256=KxOU2UGnoqw1EDHwugFTHHgccfhq22trGiRDwX5Dsng,34086
|
2
2
|
rclone_api/cli.py,sha256=dibfAZIh0kXWsBbfp3onKLjyZXo54mTzDjUdzJlDlWo,231
|
3
3
|
rclone_api/completed_process.py,sha256=_IZ8IWK7DM1_tsbDEkH6wPZ-bbcrgf7A7smls854pmg,1775
|
4
|
-
rclone_api/config.py,sha256=
|
4
|
+
rclone_api/config.py,sha256=DEBubN0ziUfAFYe6cmDn7YoTqRJPdGronFyRHZvWUso,6070
|
5
5
|
rclone_api/convert.py,sha256=Mx9Qo7zhkOedJd8LdhPvNGHp8znJzOk4f_2KWnoGc78,1012
|
6
6
|
rclone_api/deprecated.py,sha256=qWKpnZdYcBK7YQZKuVoWWXDwi-uqiAtbjgPcci_efow,590
|
7
7
|
rclone_api/diff.py,sha256=tMoJMAGmLSE6Q_7QhPf6PnCzb840djxMZtDmhc2GlGQ,5227
|
@@ -55,9 +55,9 @@ rclone_api/s3/multipart/upload_parts_inline.py,sha256=V7syKjFyVIe4U9Ahl5XgqVTzt9
|
|
55
55
|
rclone_api/s3/multipart/upload_parts_resumable.py,sha256=6-nlMclS8jyVvMvFbQDcZOX9MY1WbCcKA_s9bwuYxnk,9793
|
56
56
|
rclone_api/s3/multipart/upload_parts_server_side_merge.py,sha256=Fp2pdrs5dONQI9LkfNolgAGj1-Z2V1SsRd0r0sreuXI,18040
|
57
57
|
rclone_api/s3/multipart/upload_state.py,sha256=f-Aq2NqtAaMUMhYitlICSNIxCKurWAl2gDEUVizLIqw,6019
|
58
|
-
rclone_api-1.5.
|
59
|
-
rclone_api-1.5.
|
60
|
-
rclone_api-1.5.
|
61
|
-
rclone_api-1.5.
|
62
|
-
rclone_api-1.5.
|
63
|
-
rclone_api-1.5.
|
58
|
+
rclone_api-1.5.48.dist-info/licenses/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
59
|
+
rclone_api-1.5.48.dist-info/METADATA,sha256=oJftVhJmDY8KBcLOlUSGk23lUWpjmRnkOSrpoPuy2GQ,37305
|
60
|
+
rclone_api-1.5.48.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
61
|
+
rclone_api-1.5.48.dist-info/entry_points.txt,sha256=ognh2e11HTjn73_KL5MWI67pBKS2jekBi-QTiRXySXA,316
|
62
|
+
rclone_api-1.5.48.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
63
|
+
rclone_api-1.5.48.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|