rclone-api 1.0.31__tar.gz → 1.0.34__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {rclone_api-1.0.31 → rclone_api-1.0.34}/PKG-INFO +1 -1
- {rclone_api-1.0.31 → rclone_api-1.0.34}/pyproject.toml +1 -1
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/diff.py +4 -1
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/rclone.py +7 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api.egg-info/PKG-INFO +1 -1
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_mount.py +1 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.aiderignore +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.github/workflows/lint.yml +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.github/workflows/push_macos.yml +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.github/workflows/push_ubuntu.yml +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.github/workflows/push_win.yml +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.gitignore +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.pylintrc +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.vscode/launch.json +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.vscode/settings.json +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/.vscode/tasks.json +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/LICENSE +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/MANIFEST.in +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/README.md +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/clean +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/install +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/lint +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/requirements.testing.txt +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/setup.cfg +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/setup.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/__init__.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/assets/example.txt +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/cli.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/cmd/list_files.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/config.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/convert.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/dir.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/dir_listing.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/exec.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/file.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/filelist.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/process.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/remote.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/rpath.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/util.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api/walk.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api.egg-info/SOURCES.txt +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api.egg-info/dependency_links.txt +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api.egg-info/entry_points.txt +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api.egg-info/requires.txt +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/src/rclone_api.egg-info/top_level.txt +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/test +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_cmd_list_files.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_copy.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_diff.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_is_synced.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_ls.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_mount_s3.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_mount_webdav.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_obscure.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_remotes.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_serve_webdav.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tests/test_walk.py +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/tox.ini +0 -0
- {rclone_api-1.0.31 → rclone_api-1.0.34}/upload_package.sh +0 -0
@@ -71,6 +71,7 @@ def _async_diff_stream_from_running_process(
|
|
71
71
|
) -> None:
|
72
72
|
count = 0
|
73
73
|
first_few_lines: list[str] = []
|
74
|
+
check = True
|
74
75
|
try:
|
75
76
|
assert running_process.stdout is not None
|
76
77
|
n_max = 10
|
@@ -97,10 +98,12 @@ def _async_diff_stream_from_running_process(
|
|
97
98
|
except KeyboardInterrupt:
|
98
99
|
import _thread
|
99
100
|
|
101
|
+
check = False
|
102
|
+
|
100
103
|
print("KeyboardInterrupt")
|
101
104
|
output.put(None)
|
102
105
|
_thread.interrupt_main()
|
103
|
-
if count == 0:
|
106
|
+
if count == 0 and check:
|
104
107
|
first_lines_str = "\n".join(first_few_lines)
|
105
108
|
raise ValueError(
|
106
109
|
f"No output from rclone check, first few lines: {first_lines_str}"
|
@@ -229,6 +229,13 @@ class Rclone:
|
|
229
229
|
) -> subprocess.CompletedProcess:
|
230
230
|
"""Delete a directory"""
|
231
231
|
payload: list[str] = convert_to_filestr_list(files)
|
232
|
+
if len(payload) == 0:
|
233
|
+
return subprocess.CompletedProcess(
|
234
|
+
args=["rclone", "delete", "--files-from", "[]"],
|
235
|
+
returncode=0,
|
236
|
+
stdout="",
|
237
|
+
stderr="",
|
238
|
+
)
|
232
239
|
|
233
240
|
datalists: dict[str, list[str]] = {}
|
234
241
|
|
@@ -60,6 +60,7 @@ class RcloneMountTests(unittest.TestCase):
|
|
60
60
|
os.environ["RCLONE_API_VERBOSE"] = "1"
|
61
61
|
self.rclone = Rclone(_generate_rclone_config())
|
62
62
|
|
63
|
+
@unittest.skip("Skipping test_mount")
|
63
64
|
def test_mount(self) -> None:
|
64
65
|
"""Test mounting a remote bucket."""
|
65
66
|
remote_path = f"dst:{self.bucket_name}"
|
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
|