1
0

detect dangling links

This commit is contained in:
ThomasV
2016-05-30 10:53:52 +02:00
parent 0e61408dfa
commit 8680eae86f
2 changed files with 4 additions and 2 deletions

View File

@@ -78,6 +78,8 @@ class SimpleConfig(PrintError):
# Make directory if it does not yet exist.
if not os.path.exists(path):
if os.path.islink(path):
raise BaseException('Dangling link: ' + path)
os.mkdir(path)
print_error("electrum directory", path)