mirror of
https://github.com/aclist/dztui.git
synced 2026-11-21 17:09:30 +01:00
feat: descend into path when making parents
This commit is contained in:
1 parent
2a6a8f0cb0
commit
f300786546
1 file changed
+3
-2
+3
-2
@@ -10,8 +10,9 @@ from dzgui.const.constants import APP_NAME, APP_NAME_LOWER, IMAGES_PATH
|
|||||||
logger = logging.getLogger(APP_NAME)
|
logger = logging.getLogger(APP_NAME)
|
||||||
|
|
||||||
|
|
||||||
def make_parents(path: "Path") -> None:
|
def make_parents(path: "Path", descend: bool = False) -> None:
|
||||||
path.parent.mkdir(parents=True, exist_ok=True)
|
p = path if descend else path.parent
|
||||||
|
p.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
def copy_dzgui_to_xdg_data(exe_path: Path) -> None:
|
def copy_dzgui_to_xdg_data(exe_path: Path) -> None:
|
||||||
|
|||||||
Reference in new issue
Block a user