changeset 398:a5457241c17f

android: fixed tmp dir creation if parents don't exist, avoiding a crash.
author Goffi <goffi@goffi.org>
date Sun, 09 Feb 2020 23:47:29 +0100
parents 54f6a47cc60a
children 672880661797
files cagou/core/platform_/android.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/platform_/android.py	Sun Feb 09 23:47:29 2020 +0100
+++ b/cagou/core/platform_/android.py	Sun Feb 09 23:47:29 2020 +0100
@@ -89,7 +89,7 @@
         # we reset tmp dir on each run, to be sure that there is no residual file
         if self.tmp_dir.exists():
             shutil.rmtree(self.tmp_dir)
-        self.tmp_dir.mkdir(0o700)
+        self.tmp_dir.mkdir(0o700, parents=True)
 
     def on_initFrontendState(self):
         # XXX: we use a separated socket instead of bridge because if we