1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 06:48:49 +00:00

switched to the _create_dirs function

This commit is contained in:
Michael Weinberger
2018-05-02 16:11:33 +02:00
parent b7c63385bf
commit 8025cdd789

View File

@@ -59,9 +59,10 @@ class Installer:
if self.dry:
self.log.dry('would link %s to %s' % (dst, src))
return []
dstDir = os.path.dirname(dst)
if not os.path.exists(dstDir):
os.makedirs(dstDir)
base = os.path.dirname(dst)
if not self._create_dirs(base):
self.log.err('creating directory for \"%s\"' % (dst))
return []
os.symlink(src, dst)
self.log.sub('linked %s to %s' % (dst, src))
# Follows original developer's behavior