cache: avoid directory / file name collision
This commit is contained in:
parent
bb5b21d145
commit
3620f4f79e
|
@ -100,6 +100,7 @@ class FileCache(Cache[ResourceType]):
|
||||||
key_slug = _get_key_slug(key)
|
key_slug = _get_key_slug(key)
|
||||||
cache_directory = self.cache_base / self._name
|
cache_directory = self.cache_base / self._name
|
||||||
file_path = cache_directory.joinpath(*key_slug.split("&"))
|
file_path = cache_directory.joinpath(*key_slug.split("&"))
|
||||||
|
file_path = file_path.parent / (file_path.name + '_')
|
||||||
file_directory = file_path.parent
|
file_directory = file_path.parent
|
||||||
|
|
||||||
if not file_directory.is_dir():
|
if not file_directory.is_dir():
|
||||||
|
|
Loading…
Reference in New Issue