From 019444347040f6768bb444e29b36558f135fe0dd Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 21 Aug 2020 17:36:43 -0300 Subject: [PATCH] [flatpak] fix -> not able to make the exports directory (missing parents argument) --- bauh/gems/flatpak/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bauh/gems/flatpak/controller.py b/bauh/gems/flatpak/controller.py index 34011d57..81b86365 100644 --- a/bauh/gems/flatpak/controller.py +++ b/bauh/gems/flatpak/controller.py @@ -324,7 +324,7 @@ class FlatpakManager(SoftwareManager): self.logger.info("Creating dir '{}'".format(EXPORTS_PATH)) watcher.print('Creating dir {}'.format(EXPORTS_PATH)) try: - os.mkdir(EXPORTS_PATH) + Path(EXPORTS_PATH).mkdir(parents=True, exist_ok=True) except: watcher.print('Error while creating the directory {}'.format(EXPORTS_PATH)) return False