rclone-api 1.2.2__py2.py3-none-any.whl → 1.2.4__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.
@@ -74,6 +74,10 @@ class FileChunk:
74
74
  return b""
75
75
 
76
76
  def close(self):
77
+ import traceback
78
+
79
+ stacktrace = traceback.format_stack()
80
+ locked_print(f"Closing file chunk: {self.filepart}\n{stacktrace}")
77
81
  if self.filepart.exists():
78
82
  self.filepart.unlink()
79
83
 
@@ -21,6 +21,7 @@ _MIN_UPLOAD_CHUNK_SIZE = 5 * 1024 * 1024 # 5MB
21
21
  def upload_task(
22
22
  info: UploadInfo, chunk: bytes, part_number: int, retries: int
23
23
  ) -> FinishedPiece:
24
+ assert len(chunk) > 0
24
25
  retries = retries + 1 # Add one for the initial attempt
25
26
  for retry in range(retries):
26
27
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.2.2
3
+ Version: 1.2.4
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  License: BSD 3-Clause License
@@ -29,13 +29,13 @@ rclone_api/profile/mount_copy_bytes.py,sha256=_bd9oergTuCdj1P6AVh_pC6GmtCpLFQYwi
29
29
  rclone_api/s3/api.py,sha256=PafsIEyWDpLWAXsZAjFm9CY14vJpsDr9lOsn0kGRLZ0,4009
30
30
  rclone_api/s3/basic_ops.py,sha256=hK3366xhVEzEcjz9Gk_8lFx6MRceAk72cax6mUrr6ko,2104
31
31
  rclone_api/s3/chunk_file.py,sha256=dCF5PcI3ygw4PXuaLluBU6euW4QYYpHjsLR_jjhZxQc,4505
32
- rclone_api/s3/chunk_types.py,sha256=d-eCH2ZfCQLBr7IoNIRjaKqTtFUMZADbgDP8bHmgUAw,10445
32
+ rclone_api/s3/chunk_types.py,sha256=2n9U1BZ_5mcpoLLbSqkhvzgKj814jtSMnih9CWKcChU,10592
33
33
  rclone_api/s3/create.py,sha256=wgfkapv_j904CfKuWyiBIWJVxfAx_ftemFSUV14aT68,3149
34
34
  rclone_api/s3/types.py,sha256=ZUw9s164wljCEMTS4CoHXNzFIhYJEgKD6NDAu-RXyr8,1551
35
- rclone_api/s3/upload_file_multipart.py,sha256=aApXXnGt7MP1KQcYKIZHJvb6pGRaVxGJMq397bDxFgo,10792
36
- rclone_api-1.2.2.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
37
- rclone_api-1.2.2.dist-info/METADATA,sha256=y0TyUCdR5z2a9StrqCfpd8SFQnShGGJNjTvnER_wfig,4536
38
- rclone_api-1.2.2.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
39
- rclone_api-1.2.2.dist-info/entry_points.txt,sha256=TV8kwP3FRzYwUEr0RLC7aJh0W03SAefIJNXTJ-FdMIQ,200
40
- rclone_api-1.2.2.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
41
- rclone_api-1.2.2.dist-info/RECORD,,
35
+ rclone_api/s3/upload_file_multipart.py,sha256=CasDh_8_mYmZ8RvkcdyYeZ6OCa4DwDsByPYQg9WZR90,10818
36
+ rclone_api-1.2.4.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
37
+ rclone_api-1.2.4.dist-info/METADATA,sha256=B8BpHi7UtJrfT2DVV98M7RRuJTUnrmIXf2fxcZVq5ZU,4536
38
+ rclone_api-1.2.4.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
39
+ rclone_api-1.2.4.dist-info/entry_points.txt,sha256=TV8kwP3FRzYwUEr0RLC7aJh0W03SAefIJNXTJ-FdMIQ,200
40
+ rclone_api-1.2.4.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
41
+ rclone_api-1.2.4.dist-info/RECORD,,