Correct directory creation when an existing (but empty) target directory is specified.
This commit is contained in:
parent
2b799786b8
commit
8dcc345e93
|
@ -119,7 +119,7 @@ def main():
|
|||
if os.listdir(args.path):
|
||||
print("Destination exists and is not empty, cannot continue")
|
||||
return 1
|
||||
|
||||
else:
|
||||
os.mkdir(args.path)
|
||||
|
||||
init_django(args)
|
||||
|
|
Loading…
Reference in New Issue