Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: recipe_modules/raw_io/api.py

Issue 2835013002: Ensure raw_io creates all parent directories of the backing_dir. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/raw_io/api.py
diff --git a/recipe_modules/raw_io/api.py b/recipe_modules/raw_io/api.py
index bf755399326de05a677a01fe05db62548d0a427c..15c65e6aa769deef42a2cc63bee1c322e07fb9a8 100644
--- a/recipe_modules/raw_io/api.py
+++ b/recipe_modules/raw_io/api.py
@@ -138,7 +138,7 @@ class OutputDataDirPlaceholder(recipe_util.OutputPlaceholder):
self._backing_dir = str(self.leak_to)
if not test.enabled: # pragma: no cover
if not os.path.exists(self._backing_dir):
- os.mkdir(self._backing_dir)
+ os.makedirs(self._backing_dir)
else:
if not test.enabled: # pragma: no cover
self._backing_dir = tempfile.mkdtemp(suffix=self.suffix)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698