filesystem-dict 0.1.14__py3-none-any.whl → 0.1.16__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: filesystem-dict
3
- Version: 0.1.14
3
+ Version: 0.1.16
4
4
  Summary: Dictionary like access to the filesystem.
5
5
  Home-page: https://github.com/MNayer/fsdict
6
6
  Author: MNayer
@@ -9,6 +9,7 @@ License: 0BSD
9
9
  Keywords: dictionary,filesystem
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE.txt
12
+ Dynamic: license-file
12
13
 
13
14
  # FSDict
14
15
 
@@ -0,0 +1,8 @@
1
+ filesystem_dict-0.1.16.dist-info/licenses/LICENSE.txt,sha256=gj0O7MQO7_4hP8SMuDHyZoibgSYgqUU2__OJHaUYV1w,666
2
+ fsdict/__init__.py,sha256=DgtL0517nnpwZYuHGKGn8yICMtuKUFSD2NYtbw_6mAw,27
3
+ fsdict/fsdict.py,sha256=nBaAbedP_JRxZXMHVPFwswgKa5EnxwS7XGevXXTMP9M,6563
4
+ fsdict/utils.py,sha256=b-i8IQ0Efcxww-N7MKs8mTAPpbbIWidv1oPskO-f4vI,1103
5
+ filesystem_dict-0.1.16.dist-info/METADATA,sha256=gLfw6bl2mAaxfOLTHOIWXKzaIAf7KJ7KoVhdyby8BAU,1172
6
+ filesystem_dict-0.1.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ filesystem_dict-0.1.16.dist-info/top_level.txt,sha256=yCzBZiHiXhJdwZ4rT4xwf3-IxvJ4rlZnkwXTSw0gri8,7
8
+ filesystem_dict-0.1.16.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
fsdict/fsdict.py CHANGED
@@ -209,7 +209,8 @@ class fsdict(genfsdict):
209
209
  def _link_fsdict(self, key, other):
210
210
  src_path = other._basepath / other._path
211
211
  dst_path = self._basepath / self._path / key
212
- symlink(src_path, dst_path)
212
+ rel_path = os.path.relpath(src_path, self._basepath / self._path)
213
+ symlink(rel_path, dst_path)
213
214
 
214
215
  def _has_key(self, key):
215
216
  key_path = self._basepath / self._path / key
fsdict/utils.py CHANGED
@@ -69,5 +69,5 @@ def maybe_serialize(obj):
69
69
  def maybe_deserialize(data):
70
70
  try:
71
71
  return deserialize(data)
72
- except (pickle.UnpicklingError, EOFError):
72
+ except (Exception, EOFError):
73
73
  return data
@@ -1,8 +0,0 @@
1
- fsdict/__init__.py,sha256=DgtL0517nnpwZYuHGKGn8yICMtuKUFSD2NYtbw_6mAw,27
2
- fsdict/fsdict.py,sha256=X2o5b7mu16y17wbT2BlLp6WjTaN_cSccZ-6h9jpHOfQ,6489
3
- fsdict/utils.py,sha256=uFKdAVPDQnOW4PkNnGmbRgHPjG5Ngn7CAwl6TKI6aGw,1116
4
- filesystem_dict-0.1.14.dist-info/LICENSE.txt,sha256=gj0O7MQO7_4hP8SMuDHyZoibgSYgqUU2__OJHaUYV1w,666
5
- filesystem_dict-0.1.14.dist-info/METADATA,sha256=Pu5FLrr8U5MmeympqYQF27-IuLZP7sH_gTgyQbeWVGQ,1150
6
- filesystem_dict-0.1.14.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
7
- filesystem_dict-0.1.14.dist-info/top_level.txt,sha256=yCzBZiHiXhJdwZ4rT4xwf3-IxvJ4rlZnkwXTSw0gri8,7
8
- filesystem_dict-0.1.14.dist-info/RECORD,,