rclone-api 1.0.45__tar.gz → 1.0.46__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {rclone_api-1.0.45 → rclone_api-1.0.46}/PKG-INFO +1 -1
- {rclone_api-1.0.45 → rclone_api-1.0.46}/pyproject.toml +1 -1
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/rclone.py +12 -1
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api.egg-info/PKG-INFO +1 -1
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.aiderignore +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.github/workflows/lint.yml +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.github/workflows/push_macos.yml +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.github/workflows/push_ubuntu.yml +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.github/workflows/push_win.yml +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.gitignore +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.pylintrc +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.vscode/launch.json +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.vscode/settings.json +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/.vscode/tasks.json +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/LICENSE +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/MANIFEST.in +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/README.md +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/clean +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/install +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/lint +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/requirements.testing.txt +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/setup.cfg +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/setup.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/__init__.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/assets/example.txt +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/cli.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/cmd/list_files.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/completed_process.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/config.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/convert.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/deprecated.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/diff.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/dir.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/dir_listing.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/exec.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/file.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/filelist.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/group_files.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/process.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/remote.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/rpath.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/util.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api/walk.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api.egg-info/SOURCES.txt +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api.egg-info/dependency_links.txt +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api.egg-info/entry_points.txt +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api.egg-info/requires.txt +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/src/rclone_api.egg-info/top_level.txt +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/test +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_cmd_list_files.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_copy.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_diff.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_group_files.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_is_synced.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_ls.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_mount.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_mount_s3.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_mount_webdav.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_obscure.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_remotes.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_serve_webdav.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tests/test_walk.py +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/tox.ini +0 -0
- {rclone_api-1.0.45 → rclone_api-1.0.46}/upload_package.sh +0 -0
@@ -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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|