rclone-api 1.0.39__py2.py3-none-any.whl → 1.0.40__py2.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/util.py +6 -9
- {rclone_api-1.0.39.dist-info → rclone_api-1.0.40.dist-info}/METADATA +1 -1
- {rclone_api-1.0.39.dist-info → rclone_api-1.0.40.dist-info}/RECORD +7 -7
- {rclone_api-1.0.39.dist-info → rclone_api-1.0.40.dist-info}/LICENSE +0 -0
- {rclone_api-1.0.39.dist-info → rclone_api-1.0.40.dist-info}/WHEEL +0 -0
- {rclone_api-1.0.39.dist-info → rclone_api-1.0.40.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.0.39.dist-info → rclone_api-1.0.40.dist-info}/top_level.txt +0 -0
rclone_api/util.py
CHANGED
@@ -132,15 +132,12 @@ def wait_for_mount(path: Path, mount_process: Any, timeout: int = 60) -> None:
|
|
132
132
|
|
133
133
|
|
134
134
|
def partition_files(files: list[str]) -> dict[str, list[str]]:
|
135
|
+
"""split between filename and parent directory path"""
|
135
136
|
datalists: dict[str, list[str]] = {}
|
136
137
|
for f in files:
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
remote = f"{remote}:"
|
143
|
-
if remote not in datalists:
|
144
|
-
datalists[remote] = []
|
145
|
-
datalists[remote].append(path)
|
138
|
+
base = os.path.basename(f)
|
139
|
+
parent_path = os.path.dirname(f)
|
140
|
+
if parent_path not in datalists:
|
141
|
+
datalists[parent_path] = []
|
142
|
+
datalists[parent_path].append(base)
|
146
143
|
return datalists
|
@@ -14,13 +14,13 @@ rclone_api/process.py,sha256=RrMfTe0bndmJ6gBK67ioqNvCstJ8aTC8RlGX1XBLlcw,4191
|
|
14
14
|
rclone_api/rclone.py,sha256=dU2MEiMXC6l_QrvnWkSFpJ0sC7xyyNXCIlhEAzw2puA,19909
|
15
15
|
rclone_api/remote.py,sha256=c9hlRKBCg1BFB9MCINaQIoCg10qyAkeqiS4brl8ce-8,343
|
16
16
|
rclone_api/rpath.py,sha256=8ZA_1wxWtskwcy0I8V2VbjKDmzPkiWd8Q2JQSvh-sYE,2586
|
17
|
-
rclone_api/util.py,sha256=
|
17
|
+
rclone_api/util.py,sha256=yUN7afH4PuuUNcrXwdtyDTIluvkNOw-c5v5VPKDXoBM,4325
|
18
18
|
rclone_api/walk.py,sha256=kca0t1GAnF6FLclN01G8NG__Qe-ggodLtAbQSHyVPng,2968
|
19
19
|
rclone_api/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
20
20
|
rclone_api/cmd/list_files.py,sha256=x8FHODEilwKqwdiU1jdkeJbLwOqUkUQuDWPo2u_zpf0,741
|
21
|
-
rclone_api-1.0.
|
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.
|
21
|
+
rclone_api-1.0.40.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
22
|
+
rclone_api-1.0.40.dist-info/METADATA,sha256=E5JPNd4jSud_1zO4llJkI2X9uO_HpoqMnKCk-fRqBGc,4489
|
23
|
+
rclone_api-1.0.40.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
24
|
+
rclone_api-1.0.40.dist-info/entry_points.txt,sha256=XUoTX3m7CWxdj2VAKhEuO0NMOfX2qf-OcEDFwdyk9ZE,72
|
25
|
+
rclone_api-1.0.40.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
26
|
+
rclone_api-1.0.40.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|