Skip to content

Commit

Permalink
[build] Folder permissions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 23, 2023
1 parent 01cb5bf commit 287d579
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qBitrr/home_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
else:
ON_DOCKER = False
HOME_PATH = pathlib.Path().absolute().joinpath(".config")
HOME_PATH.mkdir(mode=777, parents=True, exist_ok=True)
HOME_PATH.mkdir(parents=True, exist_ok=True)
else:
HOME_PATH = p

APPDATA_FOLDER = HOME_PATH.joinpath("qBitManager")
APPDATA_FOLDER.mkdir(mode=777, parents=True, exist_ok=True)
APPDATA_FOLDER.mkdir(parents=True, exist_ok=True)
APPDATA_FOLDER.chmod(mode=0o777)

LOGS_FOLDER = HOME_PATH.joinpath("logs")
LOGS_FOLDER.mkdir(mode=777, parents=True, exist_ok=True)
LOGS_FOLDER.mkdir(parents=True, exist_ok=True)
LOGS_FOLDER.chmod(mode=0o777)

0 comments on commit 287d579

Please sign in to comment.