Merge branch 'antaflos/force-symlinked-dirs'
This commit is contained in:
commit
db8364490d
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ class Linker(Executor):
|
|||
(self._exists(path) and not self._is_link(path))):
|
||||
fullpath = os.path.expanduser(path)
|
||||
try:
|
||||
if os.path.isdir(fullpath):
|
||||
if os.path.islink(fullpath):
|
||||
os.unlink(fullpath)
|
||||
elif os.path.isdir(fullpath):
|
||||
shutil.rmtree(fullpath)
|
||||
else:
|
||||
os.remove(fullpath)
|
||||
|
|
Loading…
Reference in a new issue