mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
13 lines
344 B
Python
13 lines
344 B
Python
from pathlib import Path
|
|
|
|
from fpakman import __app_name__
|
|
|
|
home_path = Path.home()
|
|
cache_path = '{}/.cache/{}'.format(home_path, __app_name__)
|
|
flatpak_cache_path = '{}/flatpak/installed'.format(cache_path)
|
|
|
|
|
|
def prepare_folder_structure(disk_cache: bool):
|
|
if disk_cache:
|
|
Path(flatpak_cache_path).mkdir(parents=True, exist_ok=True)
|