rclone-api 1.0.52__tar.gz → 1.0.54__tar.gz
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-1.0.52 → rclone_api-1.0.54}/PKG-INFO +1 -1
- {rclone_api-1.0.52 → rclone_api-1.0.54}/pyproject.toml +1 -1
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/rclone.py +22 -7
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api.egg-info/PKG-INFO +1 -1
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.aiderignore +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.github/workflows/lint.yml +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.github/workflows/push_macos.yml +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.github/workflows/push_ubuntu.yml +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.github/workflows/push_win.yml +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.gitignore +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.pylintrc +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.vscode/launch.json +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.vscode/settings.json +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/.vscode/tasks.json +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/LICENSE +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/MANIFEST.in +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/README.md +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/clean +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/install +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/lint +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/requirements.testing.txt +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/setup.cfg +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/setup.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/__init__.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/assets/example.txt +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/cli.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/cmd/list_files.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/completed_process.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/config.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/convert.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/deprecated.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/diff.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/dir.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/dir_listing.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/exec.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/file.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/filelist.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/group_files.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/process.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/remote.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/rpath.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/util.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api/walk.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api.egg-info/SOURCES.txt +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api.egg-info/dependency_links.txt +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api.egg-info/entry_points.txt +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api.egg-info/requires.txt +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/src/rclone_api.egg-info/top_level.txt +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/test +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_cmd_list_files.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_copy.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_copy_files.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_diff.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_group_files.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_is_synced.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_ls.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_mount.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_mount_s3.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_mount_webdav.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_obscure.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_remote_control.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_remotes.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_serve_webdav.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tests/test_walk.py +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/tox.ini +0 -0
- {rclone_api-1.0.52 → rclone_api-1.0.54}/upload_package.sh +0 -0
@@ -274,6 +274,8 @@ class Rclone:
|
|
274
274
|
files: list[str],
|
275
275
|
check=True,
|
276
276
|
verbose: bool | None = None,
|
277
|
+
checkers: int | None = None,
|
278
|
+
transfers: int | None = None,
|
277
279
|
other_args: list[str] | None = None,
|
278
280
|
) -> list[CompletedProcess]:
|
279
281
|
"""Copy multiple files from source to destination.
|
@@ -281,6 +283,8 @@ class Rclone:
|
|
281
283
|
Args:
|
282
284
|
payload: Dictionary of source and destination file paths
|
283
285
|
"""
|
286
|
+
checkers = checkers or 1000
|
287
|
+
transfers = transfers or 32
|
284
288
|
verbose = get_verbose(verbose)
|
285
289
|
payload: list[str] = convert_to_filestr_list(files)
|
286
290
|
if len(payload) == 0:
|
@@ -301,10 +305,7 @@ class Rclone:
|
|
301
305
|
for common_prefix, files in datalists.items():
|
302
306
|
|
303
307
|
def _task(files=files) -> subprocess.CompletedProcess:
|
304
|
-
|
305
|
-
nfiles = len(files)
|
306
|
-
files_str = "\n".join(files)
|
307
|
-
print(f"Copying {nfiles} files: \n{files_str}")
|
308
|
+
|
308
309
|
with TemporaryDirectory() as tmpdir:
|
309
310
|
include_files_txt = Path(tmpdir) / "include_files.txt"
|
310
311
|
include_files_txt.write_text("\n".join(files), encoding="utf-8")
|
@@ -314,6 +315,13 @@ class Rclone:
|
|
314
315
|
else:
|
315
316
|
src_path = src
|
316
317
|
dst_path = dst
|
318
|
+
|
319
|
+
if verbose:
|
320
|
+
nfiles = len(files)
|
321
|
+
files_fqdn = [f"{src_path}/{f}" for f in files]
|
322
|
+
files_str = "\n".join(files_fqdn)
|
323
|
+
print(f"Copying {nfiles} files: \n{files_str}")
|
324
|
+
|
317
325
|
# print(include_files_txt)
|
318
326
|
cmd_list: list[str] = [
|
319
327
|
"copy",
|
@@ -322,12 +330,19 @@ class Rclone:
|
|
322
330
|
"--files-from",
|
323
331
|
str(include_files_txt),
|
324
332
|
"--checkers",
|
325
|
-
|
333
|
+
str(checkers),
|
326
334
|
"--transfers",
|
327
|
-
|
335
|
+
str(transfers),
|
328
336
|
]
|
329
337
|
if verbose:
|
330
|
-
|
338
|
+
if other_args is not None and not any(
|
339
|
+
["-v" in x for x in other_args]
|
340
|
+
):
|
341
|
+
cmd_list.append("-vvvv")
|
342
|
+
if other_args is not None and not any(
|
343
|
+
["--progress" in x for x in other_args]
|
344
|
+
):
|
345
|
+
cmd_list.append("--progress")
|
331
346
|
if other_args is not None:
|
332
347
|
cmd_list += other_args
|
333
348
|
out = self._run(cmd_list, capture=not verbose)
|
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
|
File without changes
|
File without changes
|