This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
XDG save_config_path
raises FileExistsError
#3044
Labels
save_config_path
raises FileExistsError
#3044
Describe the bug
The pyxdg
save_config_path
ensures that a directory exists before using it. This is done usingos.path
:https://github.com/takluyver/pyxdg/blob/master/xdg/BaseDirectory.py#L57-L58
Based on the Traceback below I'm wondering if we have items starting in separate threads, that are both checking/creating the XDG paths.
I haven't yet found other projects hitting the same issue.
Expected behavior
Create the directory if it doesn't exist, otherwise just use it.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: