rclone-api 1.0.24__tar.gz → 1.0.26__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {rclone_api-1.0.24 → rclone_api-1.0.26}/PKG-INFO +1 -1
- {rclone_api-1.0.24 → rclone_api-1.0.26}/pyproject.toml +1 -1
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/rclone.py +30 -3
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/PKG-INFO +1 -1
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.aiderignore +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.github/workflows/lint.yml +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.github/workflows/push_macos.yml +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.github/workflows/push_ubuntu.yml +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.github/workflows/push_win.yml +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.gitignore +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.pylintrc +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.vscode/launch.json +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.vscode/settings.json +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/.vscode/tasks.json +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/LICENSE +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/MANIFEST.in +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/README.md +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/clean +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/install +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/lint +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/requirements.testing.txt +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/setup.cfg +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/setup.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/__init__.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/assets/example.txt +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/cli.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/cmd/list_files.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/config.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/convert.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/dir.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/dir_listing.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/exec.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/file.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/filelist.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/process.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/remote.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/rpath.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/util.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api/walk.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/SOURCES.txt +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/dependency_links.txt +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/entry_points.txt +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/requires.txt +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/src/rclone_api.egg-info/top_level.txt +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/test +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_cmd_list_files.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_copy.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_is_synced.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_ls.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_mount.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_mount_s3.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_mount_webdav.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_obscure.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_remotes.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_serve_webdav.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tests/test_walk.py +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/tox.ini +0 -0
- {rclone_api-1.0.24 → rclone_api-1.0.26}/upload_package.sh +0 -0
@@ -345,14 +345,23 @@ class Rclone:
|
|
345
345
|
self,
|
346
346
|
url: str,
|
347
347
|
outdir: Path,
|
348
|
+
allow_writes=False,
|
348
349
|
vfs_cache_mode="full",
|
349
|
-
|
350
|
+
# dir-cache-time
|
351
|
+
dir_cache_time: str | None = "1h",
|
352
|
+
attribute_timeout: str | None = "1h",
|
353
|
+
# --vfs-cache-max-size
|
354
|
+
# vfs-cache-max-size
|
355
|
+
vfs_disk_space_total_size: str | None = "100M",
|
356
|
+
transfers: int | None = 128,
|
350
357
|
modtime_strategy: (
|
351
358
|
ModTimeStrategy | None
|
352
359
|
) = ModTimeStrategy.USE_SERVER_MODTIME, # speeds up S3 operations
|
353
360
|
vfs_read_chunk_streams: int | None = 16,
|
354
361
|
vfs_read_chunk_size: str | None = "4M",
|
355
362
|
vfs_fast_fingerprint: bool = True,
|
363
|
+
# vfs-refresh
|
364
|
+
vfs_refresh: bool = True,
|
356
365
|
other_cmds: list[str] | None = None,
|
357
366
|
) -> Process:
|
358
367
|
"""Mount a remote or directory to a local path.
|
@@ -365,10 +374,24 @@ class Rclone:
|
|
365
374
|
if modtime_strategy is not None:
|
366
375
|
other_cmds.append(f"--{modtime_strategy.value}")
|
367
376
|
if (vfs_cache_mode == "full" or vfs_cache_mode == "writes") and (
|
368
|
-
transfers is not None
|
377
|
+
transfers is not None and "--transfers" not in other_cmds
|
369
378
|
):
|
370
379
|
other_cmds.append("--transfers")
|
371
380
|
other_cmds.append(str(transfers))
|
381
|
+
if dir_cache_time is not None and "--dir-cache-time" not in other_cmds:
|
382
|
+
other_cmds.append("--dir-cache-time")
|
383
|
+
other_cmds.append(dir_cache_time)
|
384
|
+
if (
|
385
|
+
vfs_disk_space_total_size is not None
|
386
|
+
and "--vfs-cache-max-size" not in other_cmds
|
387
|
+
):
|
388
|
+
other_cmds.append("--vfs-cache-max-size")
|
389
|
+
other_cmds.append(vfs_disk_space_total_size)
|
390
|
+
if vfs_refresh and "--vfs-refresh" not in other_cmds:
|
391
|
+
other_cmds.append("--vfs-refresh")
|
392
|
+
if attribute_timeout is not None and "--attr-timeout" not in other_cmds:
|
393
|
+
other_cmds.append("--attr-timeout")
|
394
|
+
other_cmds.append(attribute_timeout)
|
372
395
|
if vfs_read_chunk_streams:
|
373
396
|
other_cmds.append("--vfs-read-chunk-streams")
|
374
397
|
other_cmds.append(str(vfs_read_chunk_streams))
|
@@ -380,7 +403,11 @@ class Rclone:
|
|
380
403
|
|
381
404
|
other_cmds = other_cmds if other_cmds else None
|
382
405
|
return self.mount(
|
383
|
-
url,
|
406
|
+
url,
|
407
|
+
outdir,
|
408
|
+
allow_writes=allow_writes,
|
409
|
+
vfs_cache_mode=vfs_cache_mode,
|
410
|
+
other_cmds=other_cmds,
|
384
411
|
)
|
385
412
|
|
386
413
|
def serve_webdav(
|
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
|