rclone-api 1.1.16__py2.py3-none-any.whl → 1.1.18__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.
@@ -109,8 +109,6 @@ class UploadInfo:
109
109
  hasher = hashlib.sha256()
110
110
  # first is file size
111
111
  hasher.update(str(self.file_size).encode("utf-8"))
112
- # second is the file path
113
- hasher.update(str(self.src_file_path).encode("utf-8"))
114
112
  # next is chunk size
115
113
  hasher.update(str(self.chunk_size).encode("utf-8"))
116
114
  # next is the number of parts
@@ -221,9 +219,7 @@ class UploadState:
221
219
 
222
220
  def save(self) -> None:
223
221
  with _SAVE_STATE_LOCK:
224
-
225
222
  self._check_fingerprint_no_lock()
226
-
227
223
  self._save_no_lock()
228
224
 
229
225
  def _check_fingerprint_no_lock(self) -> None:
@@ -243,7 +239,7 @@ class UploadState:
243
239
  curr_fingerprint = self.fingerprint()
244
240
  if curr_fingerprint != last_upload_state.fingerprint():
245
241
  raise ValueError(
246
- f"Cannot save state, fingerprint changed from {curr_fingerprint} to {self.upload_info.fingerprint()}"
242
+ f"Cannot save state, fingerprint changed from {curr_fingerprint} to {last_upload_state.fingerprint()}"
247
243
  )
248
244
 
249
245
  def _save_no_lock(self) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.1.16
3
+ Version: 1.1.18
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  License: BSD 3-Clause License
@@ -28,13 +28,13 @@ rclone_api/experimental/flags_base.py,sha256=ajU_czkTcAxXYU-SlmiCfHY7aCQGHvpCLqJ
28
28
  rclone_api/s3/api.py,sha256=VstlaEnBjO2JDQuCRLdTfUGvQLbfshlXXhAzimFv4Vc,3763
29
29
  rclone_api/s3/basic_ops.py,sha256=hK3366xhVEzEcjz9Gk_8lFx6MRceAk72cax6mUrr6ko,2104
30
30
  rclone_api/s3/chunk_file.py,sha256=XPoDl7DJMJIGBMRoPO2wqwqCMT7ZrIsEkDqlbMH8jzs,3506
31
- rclone_api/s3/chunk_types.py,sha256=vUmaTl3hGPodriM9DW1nAsYm0kHGfNT8nPWv6ur22Jo,10370
31
+ rclone_api/s3/chunk_types.py,sha256=mIlbHmxMJxmHVN4yuQ0MdzpCQfwq2a4YsHX0Q18ri2Q,10272
32
32
  rclone_api/s3/chunk_uploader.py,sha256=7Qumc2emQ-SpbnTL8PBN4ElpghnFWJfozVHPhm6LrQ4,9683
33
33
  rclone_api/s3/create.py,sha256=SK3IGHZwsSkoG4Zb4NCphcVg9_f7VifDKng-tExMS2s,3088
34
34
  rclone_api/s3/types.py,sha256=yBnJ38Tjk6RlydJ-sqZ7DSfyFloy8KDYJ0mv3vlOzLE,1388
35
- rclone_api-1.1.16.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
36
- rclone_api-1.1.16.dist-info/METADATA,sha256=rJCrejq4GzvZXK-wJ6E6MScUVadEjwbzQHZP3CLgD7k,4479
37
- rclone_api-1.1.16.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
38
- rclone_api-1.1.16.dist-info/entry_points.txt,sha256=6eNqTRXKhVf8CpWNjXiOa_0Du9tHiW_HD2iQSXRsUg8,132
39
- rclone_api-1.1.16.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
40
- rclone_api-1.1.16.dist-info/RECORD,,
35
+ rclone_api-1.1.18.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
36
+ rclone_api-1.1.18.dist-info/METADATA,sha256=JvpfimB7R6b4g5FZqgPTFiiYZl66swyJXR13AI2ve7s,4479
37
+ rclone_api-1.1.18.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
38
+ rclone_api-1.1.18.dist-info/entry_points.txt,sha256=6eNqTRXKhVf8CpWNjXiOa_0Du9tHiW_HD2iQSXRsUg8,132
39
+ rclone_api-1.1.18.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
40
+ rclone_api-1.1.18.dist-info/RECORD,,