rclone-api 1.0.31__py2.py3-none-any.whl → 1.0.34__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- rclone_api/diff.py +4 -1
- rclone_api/rclone.py +7 -0
- {rclone_api-1.0.31.dist-info → rclone_api-1.0.34.dist-info}/METADATA +1 -1
- {rclone_api-1.0.31.dist-info → rclone_api-1.0.34.dist-info}/RECORD +8 -8
- {rclone_api-1.0.31.dist-info → rclone_api-1.0.34.dist-info}/LICENSE +0 -0
- {rclone_api-1.0.31.dist-info → rclone_api-1.0.34.dist-info}/WHEEL +0 -0
- {rclone_api-1.0.31.dist-info → rclone_api-1.0.34.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.0.31.dist-info → rclone_api-1.0.34.dist-info}/top_level.txt +0 -0
rclone_api/diff.py
CHANGED
@@ -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}"
|
rclone_api/rclone.py
CHANGED
@@ -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
|
|
@@ -2,23 +2,23 @@ rclone_api/__init__.py,sha256=L_ulzYG9WmQqmrVANt-Omi1FJUQVTkXA7SVZx9QH_9M,457
|
|
2
2
|
rclone_api/cli.py,sha256=dibfAZIh0kXWsBbfp3onKLjyZXo54mTzDjUdzJlDlWo,231
|
3
3
|
rclone_api/config.py,sha256=tP6cU9DnCCEIRc_KP9HPur1jFLLg2QGFSxNwFm6_MVw,118
|
4
4
|
rclone_api/convert.py,sha256=Mx9Qo7zhkOedJd8LdhPvNGHp8znJzOk4f_2KWnoGc78,1012
|
5
|
-
rclone_api/diff.py,sha256=
|
5
|
+
rclone_api/diff.py,sha256=UqAiWJjAeTTy2ewH6idYKt92Y_JltGAWvrZuE9RNKX8,4159
|
6
6
|
rclone_api/dir.py,sha256=vV-bcI2ESijmwF5rPID5WO2K7soAfZa35wv4KRh_GIo,2154
|
7
7
|
rclone_api/dir_listing.py,sha256=9Qqf2SUswrOEkyqmaH23V51I18X6ePiXb9B1vUwRF5o,1571
|
8
8
|
rclone_api/exec.py,sha256=HWmnU2Jwb-3EttSbAJSaLloYA7YI2mHTzRJ5VEri9aM,941
|
9
9
|
rclone_api/file.py,sha256=D02iHJW1LhfOiM_R_yPHP8_ApnDiYrkuraVcrV8-qkw,1246
|
10
10
|
rclone_api/filelist.py,sha256=xbiusvNgaB_b_kQOZoHMJJxn6TWGtPrWd2J042BI28o,767
|
11
11
|
rclone_api/process.py,sha256=RrMfTe0bndmJ6gBK67ioqNvCstJ8aTC8RlGX1XBLlcw,4191
|
12
|
-
rclone_api/rclone.py,sha256=
|
12
|
+
rclone_api/rclone.py,sha256=jthwnD974eaSBwrgXlQJu_cJpvohxce80BITKhfMYWI,18145
|
13
13
|
rclone_api/remote.py,sha256=c9hlRKBCg1BFB9MCINaQIoCg10qyAkeqiS4brl8ce-8,343
|
14
14
|
rclone_api/rpath.py,sha256=8ZA_1wxWtskwcy0I8V2VbjKDmzPkiWd8Q2JQSvh-sYE,2586
|
15
15
|
rclone_api/util.py,sha256=sUjH5NmsawmNbPMY7V6hD8vFJXCwbl44XM1kuij3tA0,3918
|
16
16
|
rclone_api/walk.py,sha256=kca0t1GAnF6FLclN01G8NG__Qe-ggodLtAbQSHyVPng,2968
|
17
17
|
rclone_api/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
18
18
|
rclone_api/cmd/list_files.py,sha256=x8FHODEilwKqwdiU1jdkeJbLwOqUkUQuDWPo2u_zpf0,741
|
19
|
-
rclone_api-1.0.
|
20
|
-
rclone_api-1.0.
|
21
|
-
rclone_api-1.0.
|
22
|
-
rclone_api-1.0.
|
23
|
-
rclone_api-1.0.
|
24
|
-
rclone_api-1.0.
|
19
|
+
rclone_api-1.0.34.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
20
|
+
rclone_api-1.0.34.dist-info/METADATA,sha256=mPuGlvje_1-t2WhXPpcRmcEnildFVqil-F8QgAtsZyE,4488
|
21
|
+
rclone_api-1.0.34.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
22
|
+
rclone_api-1.0.34.dist-info/entry_points.txt,sha256=XUoTX3m7CWxdj2VAKhEuO0NMOfX2qf-OcEDFwdyk9ZE,72
|
23
|
+
rclone_api-1.0.34.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
24
|
+
rclone_api-1.0.34.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|