We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74bbcf0 commit bce322bCopy full SHA for bce322b
1 file changed
src/blueapi/service/authentication.py
@@ -71,6 +71,8 @@ def _default_token_cache_path() -> Path:
71
def can_access_cache(self) -> bool:
72
assert self._token_path
73
try:
74
+ Path(self._token_path.parent).mkdir(parents=True, exist_ok=True)
75
+ os.chmod(self._token_path.parent, 0o600)
76
self._token_path.write_text("")
77
except IsADirectoryError:
78
print("Invalid path: a directory path was provided instead of a file path")
0 commit comments