rclone-api 1.1.29__py2.py3-none-any.whl → 1.1.30__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/rclone.py +10 -1
- {rclone_api-1.1.29.dist-info → rclone_api-1.1.30.dist-info}/METADATA +1 -1
- {rclone_api-1.1.29.dist-info → rclone_api-1.1.30.dist-info}/RECORD +7 -7
- {rclone_api-1.1.29.dist-info → rclone_api-1.1.30.dist-info}/LICENSE +0 -0
- {rclone_api-1.1.29.dist-info → rclone_api-1.1.30.dist-info}/WHEEL +0 -0
- {rclone_api-1.1.29.dist-info → rclone_api-1.1.30.dist-info}/entry_points.txt +0 -0
- {rclone_api-1.1.29.dist-info → rclone_api-1.1.30.dist-info}/top_level.txt +0 -0
rclone_api/rclone.py
CHANGED
|
@@ -817,6 +817,9 @@ class Rclone:
|
|
|
817
817
|
offset: int,
|
|
818
818
|
length: int,
|
|
819
819
|
transfers: int = 16,
|
|
820
|
+
outfile: (
|
|
821
|
+
Path | None
|
|
822
|
+
) = None, # If supplied then bytes are written to this file and success returns bytes(0)
|
|
820
823
|
) -> bytes | Exception:
|
|
821
824
|
"""Copy bytes from a file to another file."""
|
|
822
825
|
from rclone_api.util import random_str
|
|
@@ -851,7 +854,13 @@ class Rclone:
|
|
|
851
854
|
with open(src_file_mnt, "rb") as f:
|
|
852
855
|
f.seek(offset)
|
|
853
856
|
data = f.read(length)
|
|
854
|
-
|
|
857
|
+
if outfile is None:
|
|
858
|
+
return data
|
|
859
|
+
with open(outfile, "wb") as out:
|
|
860
|
+
out.write(data)
|
|
861
|
+
del data
|
|
862
|
+
return bytes(0)
|
|
863
|
+
|
|
855
864
|
except Exception as e:
|
|
856
865
|
return e
|
|
857
866
|
|
|
@@ -13,7 +13,7 @@ rclone_api/filelist.py,sha256=xbiusvNgaB_b_kQOZoHMJJxn6TWGtPrWd2J042BI28o,767
|
|
|
13
13
|
rclone_api/group_files.py,sha256=H92xPW9lQnbNw5KbtZCl00bD6iRh9yRbCuxku4j_3dg,8036
|
|
14
14
|
rclone_api/mount.py,sha256=g9YkKCGJbWvGF7gzSKtWa8pEgphuW0-e0SySxtOirH4,6093
|
|
15
15
|
rclone_api/process.py,sha256=Hgn8MGEPkBt8C6C4oIuh-n1t1GkFF2miPlIE1lh_Zbc,5045
|
|
16
|
-
rclone_api/rclone.py,sha256=
|
|
16
|
+
rclone_api/rclone.py,sha256=3E7fr4k1bgls_jK2F1qbqz9IxN8SPNt8IdvA4GvY9E4,42229
|
|
17
17
|
rclone_api/remote.py,sha256=O9WDUFQy9f6oT1HdUbTixK2eg0xtBBm8k4Xl6aa6K00,431
|
|
18
18
|
rclone_api/rpath.py,sha256=8ZA_1wxWtskwcy0I8V2VbjKDmzPkiWd8Q2JQSvh-sYE,2586
|
|
19
19
|
rclone_api/scan_missing_folders.py,sha256=Kulca2Q6WZodt00ATFHkmqqInuoPvBkhTcS9703y6po,4740
|
|
@@ -32,9 +32,9 @@ rclone_api/s3/chunk_types.py,sha256=LbXayXY1KgVU1LkdbASD_BQ7TpVpwVnzMjtz--8LBaE,
|
|
|
32
32
|
rclone_api/s3/create.py,sha256=wgfkapv_j904CfKuWyiBIWJVxfAx_ftemFSUV14aT68,3149
|
|
33
33
|
rclone_api/s3/types.py,sha256=yBnJ38Tjk6RlydJ-sqZ7DSfyFloy8KDYJ0mv3vlOzLE,1388
|
|
34
34
|
rclone_api/s3/upload_file_multipart.py,sha256=1jQAdk35Fa9Tcq36bS65262cs7AcNG2DAFQ-NdYlWSw,9961
|
|
35
|
-
rclone_api-1.1.
|
|
36
|
-
rclone_api-1.1.
|
|
37
|
-
rclone_api-1.1.
|
|
38
|
-
rclone_api-1.1.
|
|
39
|
-
rclone_api-1.1.
|
|
40
|
-
rclone_api-1.1.
|
|
35
|
+
rclone_api-1.1.30.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
|
36
|
+
rclone_api-1.1.30.dist-info/METADATA,sha256=-yOOME96u7YXchp4cDxwhmPj5fVD8L6AyxxhQGJIMvU,4514
|
|
37
|
+
rclone_api-1.1.30.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
|
|
38
|
+
rclone_api-1.1.30.dist-info/entry_points.txt,sha256=6eNqTRXKhVf8CpWNjXiOa_0Du9tHiW_HD2iQSXRsUg8,132
|
|
39
|
+
rclone_api-1.1.30.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
|
|
40
|
+
rclone_api-1.1.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|