rclone-api 1.5.5__py2.py3-none-any.whl → 1.5.6__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/util.py CHANGED
@@ -40,7 +40,11 @@ def _clean_configs(signum=None, frame=None) -> None:
40
40
  return
41
41
  for config in _RCLONE_CONFIGS_LIST:
42
42
  try:
43
- config.unlink()
43
+ if config.exists():
44
+ if config.is_dir():
45
+ shutil.rmtree(config, ignore_errors=True)
46
+ else:
47
+ config.unlink()
44
48
  except Exception as e:
45
49
  print(f"Error deleting config file: {config}, {e}")
46
50
  _RCLONE_CONFIGS_LIST.clear()
@@ -65,7 +69,7 @@ def make_temp_config_file() -> Path:
65
69
  tmpdir = _TMP_CONFIG_DIR / random_str(32)
66
70
  tmpdir.mkdir(parents=True, exist_ok=True)
67
71
  tmpfile = tmpdir / "rclone.conf"
68
- _RCLONE_CONFIGS_LIST.append(tmpfile)
72
+ _RCLONE_CONFIGS_LIST.append(tmpdir)
69
73
  return tmpfile
70
74
 
71
75
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rclone_api
3
- Version: 1.5.5
3
+ Version: 1.5.6
4
4
  Summary: rclone api in python
5
5
  Home-page: https://github.com/zackees/rclone-api
6
6
  License: BSD 3-Clause License
@@ -24,7 +24,7 @@ rclone_api/remote.py,sha256=mTgMTQTwxUmbLjTpr-AGTId2ycXKI9mLX5L7PPpDIoc,520
24
24
  rclone_api/rpath.py,sha256=Y1JjQWcie39EgQrq-UtbfDz5yDLCwwfu27W7AQXllSE,2860
25
25
  rclone_api/scan_missing_folders.py,sha256=-8NCwpCaHeHrX-IepCoAEsX1rl8S-GOCxcIhTr_w3gA,4747
26
26
  rclone_api/types.py,sha256=2ngxwpdNy88y0teeYJ5Vz5NiLK1rfaFx8Xf99i0J-Js,12155
27
- rclone_api/util.py,sha256=IOjutkZRIbgBChUemLbp6_siVDAYMZ1UlpJgWzV-Zvs,9387
27
+ rclone_api/util.py,sha256=Xa_VifjNT_h9IMkqbnAmgSkEqqwczkGH_TcUUJHx-no,9546
28
28
  rclone_api/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
29
29
  rclone_api/cmd/analyze.py,sha256=RHbvk1G5ZUc3qLqlm1AZEyQzd_W_ZjcbCNDvW4YpTKQ,1252
30
30
  rclone_api/cmd/copy_large_s3.py,sha256=E0B7P-JJTuOM7wMZtwQHJCpoLhccJleh0mnMq8ZiSUo,3234
@@ -52,9 +52,9 @@ rclone_api/s3/multipart/upload_parts_inline.py,sha256=V7syKjFyVIe4U9Ahl5XgqVTzt9
52
52
  rclone_api/s3/multipart/upload_parts_resumable.py,sha256=diJoUpVYow6No_dNgOZIYVsv43k4evb6zixqpzWJaUk,9771
53
53
  rclone_api/s3/multipart/upload_parts_server_side_merge.py,sha256=Fp2pdrs5dONQI9LkfNolgAGj1-Z2V1SsRd0r0sreuXI,18040
54
54
  rclone_api/s3/multipart/upload_state.py,sha256=f-Aq2NqtAaMUMhYitlICSNIxCKurWAl2gDEUVizLIqw,6019
55
- rclone_api-1.5.5.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
56
- rclone_api-1.5.5.dist-info/METADATA,sha256=BK7GrWlhZN2qAW2UCnB9W5xAyvkN5m0cez2TpgGJcWQ,32633
57
- rclone_api-1.5.5.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
58
- rclone_api-1.5.5.dist-info/entry_points.txt,sha256=fJteOlYVwgX3UbNuL9jJ0zUTuX2O79JFAeNgK7Sw7EQ,255
59
- rclone_api-1.5.5.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
60
- rclone_api-1.5.5.dist-info/RECORD,,
55
+ rclone_api-1.5.6.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
56
+ rclone_api-1.5.6.dist-info/METADATA,sha256=WQndsxBcQyikEIYTaIJ3IH8tzC00wUeW9BTFC3s-vkM,32633
57
+ rclone_api-1.5.6.dist-info/WHEEL,sha256=rF4EZyR2XVS6irmOHQIJx2SUqXLZKRMUrjsg8UwN-XQ,109
58
+ rclone_api-1.5.6.dist-info/entry_points.txt,sha256=fJteOlYVwgX3UbNuL9jJ0zUTuX2O79JFAeNgK7Sw7EQ,255
59
+ rclone_api-1.5.6.dist-info/top_level.txt,sha256=EvZ7uuruUpe9RiUyEp25d1Keq7PWYNT0O_-mr8FCG5g,11
60
+ rclone_api-1.5.6.dist-info/RECORD,,