Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 5b782dbd authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Fix bug when a file is passed as a path: do not try to create it like a folder

parent 6306fd99
No related branches found
No related tags found
No related merge requests found
...@@ -286,7 +286,7 @@ def ensure_dir_presence(path): ...@@ -286,7 +286,7 @@ def ensure_dir_presence(path):
# Current directory # Current directory
path = "." path = "."
if not os.path.isdir(path): if not os.path.isfile(path) and not os.path.isdir(path):
LOGGER.info("Creation of the directory <{}>".format(path)) LOGGER.info("Creation of the directory <{}>".format(path))
os.mkdir(path) os.mkdir(path)
......
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