Skip to content
Snippets Groups Projects
Commit 7015b0dd authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Update __init__.py

parent 885cdd00
No related branches found
No related tags found
1 merge request!29create_directories_safe: use the new exist_ok flag in os.makedirs.
Pipeline #38383 passed
......@@ -83,6 +83,7 @@ def _is_string(s):
isinstance(s, (bytes, str))
@numpy.deprecate(new_name="os.makedirs(directory, exist_ok=True)")
def create_directories_safe(directory, dryrun=False):
"""Creates a directory if it does not exists, with concurrent access support.
This function will also create any parent directories that might be required.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment