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
......@@ -286,7 +286,7 @@ def ensure_dir_presence(path):
# Current directory
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))
os.mkdir(path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment