rclone-api 1.0.45__py2.py3-none-any.whl → 1.0.46__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rclone-api might be problematic. Click here for more details.
- rclone_api/rclone.py +12 -1
- {rclone_api-1.0.45.dist-info → rclone_api-1.0.46.dist-info}/METADATA +1 -1
- {rclone_api-1.0.45.dist-info → rclone_api-1.0.46.dist-info}/RECORD +7 -7
- {rclone_api-1.0.45.dist-info → rclone_api-1.0.46.dist-info}/LICENSE +0 -0
- {rclone_api-1.0.45.dist-info → rclone_api-1.0.46.dist-info}/WHEEL +0 -0
- {rclone_api-1.0.45.dist-info → rclone_api-1.0.46.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.0.45.dist-info → rclone_api-1.0.46.dist-info}/top_level.txt +0 -0
rclone_api/rclone.py
CHANGED
@@ -63,6 +63,13 @@ class Rclone:
|
|
63
63
|
def _launch_process(self, cmd: list[str], capture: bool | None = None) -> Process:
|
64
64
|
return self._exec.launch_process(cmd, capture=capture)
|
65
65
|
|
66
|
+
def webgui(self, other_args: list[str] | None = None) -> Process:
|
67
|
+
"""Launch the Rclone web GUI."""
|
68
|
+
cmd = ["rcd", "--rc-web-gui"]
|
69
|
+
if other_args:
|
70
|
+
cmd += other_args
|
71
|
+
return self._launch_process(cmd, capture=False)
|
72
|
+
|
66
73
|
def obscure(self, password: str) -> str:
|
67
74
|
"""Obscure a password for use in rclone config files."""
|
68
75
|
cmd_list: list[str] = ["obscure", password]
|
@@ -185,10 +192,14 @@ class Rclone:
|
|
185
192
|
|
186
193
|
yield from walk(dir_obj, max_depth=max_depth, breadth_first=breadth_first)
|
187
194
|
|
188
|
-
def cleanup(
|
195
|
+
def cleanup(
|
196
|
+
self, path: str, other_args: list[str] | None = None
|
197
|
+
) -> CompletedProcess:
|
189
198
|
"""Cleanup any resources used by the Rclone instance."""
|
190
199
|
# rclone cleanup remote:path [flags]
|
191
200
|
cmd = ["cleanup", path]
|
201
|
+
if other_args:
|
202
|
+
cmd += other_args
|
192
203
|
out = self._run(cmd)
|
193
204
|
return CompletedProcess.from_subprocess(out)
|
194
205
|
|
@@ -12,16 +12,16 @@ rclone_api/file.py,sha256=D02iHJW1LhfOiM_R_yPHP8_ApnDiYrkuraVcrV8-qkw,1246
|
|
12
12
|
rclone_api/filelist.py,sha256=xbiusvNgaB_b_kQOZoHMJJxn6TWGtPrWd2J042BI28o,767
|
13
13
|
rclone_api/group_files.py,sha256=HxrRUi_kFlMblrCMFyv6rO56tVMEzgU4-vVeB_2-lbc,4606
|
14
14
|
rclone_api/process.py,sha256=RrMfTe0bndmJ6gBK67ioqNvCstJ8aTC8RlGX1XBLlcw,4191
|
15
|
-
rclone_api/rclone.py,sha256=
|
15
|
+
rclone_api/rclone.py,sha256=JmF7D_QSFkpMtYKv5Gb39ar20HrHw3KdZksCV6n2Kys,21887
|
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=sUjH5NmsawmNbPMY7V6hD8vFJXCwbl44XM1kuij3tA0,3918
|
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.46.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
23
|
+
rclone_api-1.0.46.dist-info/METADATA,sha256=1UwYsuePm7GwnbcAtwjINIdGQDaBt3SiPdWsvvSyLwI,4489
|
24
|
+
rclone_api-1.0.46.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
25
|
+
rclone_api-1.0.46.dist-info/entry_points.txt,sha256=XUoTX3m7CWxdj2VAKhEuO0NMOfX2qf-OcEDFwdyk9ZE,72
|
26
|
+
rclone_api-1.0.46.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
27
|
+
rclone_api-1.0.46.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|