We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23d402 commit e4e81b6Copy full SHA for e4e81b6
nipype/utils/filemanip.py
@@ -13,6 +13,7 @@
13
import os
14
import re
15
import shutil
16
+import errno
17
18
import numpy as np
19
@@ -430,3 +431,13 @@ def write_rst_dict(info, prefix=''):
430
431
for key, value in sorted(info.items()):
432
out.append(prefix + '* ' + key + ' : ' + str(value))
433
return '\n'.join(out)+'\n\n'
434
+
435
436
+def mkdir_p(path):
437
+ try:
438
+ os.makedirs(path)
439
+ except OSError as exc:
440
+ if exc.errno == errno.EEXIST and os.path.isdir(path):
441
+ pass
442
+ else:
443
+ raise
0 commit comments