rclone-api 1.0.50__tar.gz → 1.0.51__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {rclone_api-1.0.50 → rclone_api-1.0.51}/PKG-INFO +1 -1
- {rclone_api-1.0.50 → rclone_api-1.0.51}/pyproject.toml +1 -1
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/rclone.py +11 -1
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api.egg-info/PKG-INFO +1 -1
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.aiderignore +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.github/workflows/lint.yml +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.github/workflows/push_macos.yml +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.github/workflows/push_ubuntu.yml +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.github/workflows/push_win.yml +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.gitignore +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.pylintrc +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.vscode/launch.json +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.vscode/settings.json +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/.vscode/tasks.json +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/LICENSE +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/MANIFEST.in +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/README.md +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/clean +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/install +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/lint +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/requirements.testing.txt +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/setup.cfg +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/setup.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/__init__.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/assets/example.txt +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/cli.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/cmd/list_files.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/completed_process.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/config.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/convert.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/deprecated.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/diff.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/dir.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/dir_listing.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/exec.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/file.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/filelist.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/group_files.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/process.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/remote.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/rpath.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/util.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api/walk.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api.egg-info/SOURCES.txt +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api.egg-info/dependency_links.txt +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api.egg-info/entry_points.txt +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api.egg-info/requires.txt +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/src/rclone_api.egg-info/top_level.txt +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/test +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_cmd_list_files.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_copy.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_copy_files.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_diff.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_group_files.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_is_synced.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_ls.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_mount.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_mount_s3.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_mount_webdav.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_obscure.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_remote_control.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_remotes.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_serve_webdav.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tests/test_walk.py +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/tox.ini +0 -0
- {rclone_api-1.0.50 → rclone_api-1.0.51}/upload_package.sh +0 -0
@@ -273,6 +273,7 @@ class Rclone:
|
|
273
273
|
dst: str,
|
274
274
|
files: list[str],
|
275
275
|
check=True,
|
276
|
+
verbose: bool | None = None,
|
276
277
|
other_args: list[str] | None = None,
|
277
278
|
) -> list[CompletedProcess]:
|
278
279
|
"""Copy multiple files from source to destination.
|
@@ -280,6 +281,7 @@ class Rclone:
|
|
280
281
|
Args:
|
281
282
|
payload: Dictionary of source and destination file paths
|
282
283
|
"""
|
284
|
+
verbose = get_verbose(verbose)
|
283
285
|
payload: list[str] = convert_to_filestr_list(files)
|
284
286
|
if len(payload) == 0:
|
285
287
|
return []
|
@@ -293,6 +295,10 @@ class Rclone:
|
|
293
295
|
for common_prefix, files in datalists.items():
|
294
296
|
|
295
297
|
def _task(files=files) -> subprocess.CompletedProcess:
|
298
|
+
if verbose:
|
299
|
+
nfiles = len(files)
|
300
|
+
files_str = "\n".join(files)
|
301
|
+
print(f"Copying {nfiles} files: \n{files_str}")
|
296
302
|
with TemporaryDirectory() as tmpdir:
|
297
303
|
include_files_txt = Path(tmpdir) / "include_files.txt"
|
298
304
|
include_files_txt.write_text("\n".join(files), encoding="utf-8")
|
@@ -314,6 +320,8 @@ class Rclone:
|
|
314
320
|
"--transfers",
|
315
321
|
"1000",
|
316
322
|
]
|
323
|
+
if verbose:
|
324
|
+
cmd_list.append("-vvvv")
|
317
325
|
if other_args is not None:
|
318
326
|
cmd_list += other_args
|
319
327
|
out = self._run(cmd_list)
|
@@ -364,8 +372,11 @@ class Rclone:
|
|
364
372
|
other_args: list[str] | None = None,
|
365
373
|
) -> CompletedProcess:
|
366
374
|
"""Delete a directory"""
|
375
|
+
verbose = get_verbose(verbose)
|
367
376
|
payload: list[str] = convert_to_filestr_list(files)
|
368
377
|
if len(payload) == 0:
|
378
|
+
if verbose:
|
379
|
+
print("No files to delete")
|
369
380
|
cp = subprocess.CompletedProcess(
|
370
381
|
args=["rclone", "delete", "--files-from", "[]"],
|
371
382
|
returncode=0,
|
@@ -376,7 +387,6 @@ class Rclone:
|
|
376
387
|
|
377
388
|
datalists: dict[str, list[str]] = group_files(payload)
|
378
389
|
completed_processes: list[subprocess.CompletedProcess] = []
|
379
|
-
verbose = get_verbose(verbose)
|
380
390
|
|
381
391
|
futures: list[Future] = []
|
382
392
|
|
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
|