Skip to content

Commit

Permalink
Ensure raw_io creates all parent directories of the backing_dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudorick authored and Commit bot committed Apr 22, 2017
1 parent 6eba2e3 commit 554e887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipe_modules/raw_io/api.py
Expand Up @@ -138,7 +138,7 @@ def render(self, test):
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)
Expand Down

0 comments on commit 554e887

Please sign in to comment.