Browse files

working on it...

  • Loading branch information...
mortenvp committed Dec 20, 2017
1 parent f3abb90 commit f71fd2533fa8b07356e7cea1fd75a8b8e790ed1c
Showing with 9 additions and 1 deletion.
  1. +1 −0 src/wurf/
  2. +8 −1 src/wurf/
@@ -4,6 +4,7 @@
import os
import sys
from .symlink import create_symlink
class CreateSymlinkResolver(object):
@@ -9,6 +9,13 @@
def create_symlink(from_path, to_path, overwrite=False):
""" Creates a symlink.
:param from_path: The path to the directory or file we want to create a
symlink to.
:param to_path: The path where the symbolic link should be created.
:param overwrite: If overwrite is True we first remove the path where the
symbolic link should be created.
if overwrite and os.path.lexists(path=to_path):
@@ -22,7 +29,7 @@ def create_symlink(from_path, to_path, overwrite=False):
def _remove_symlink(path):
if sys.platform == 'win32':
if sys.platform == 'win32' and os.path.isdir(path):
# On Windows, the symlink is not considered a link, but
# a directory, so it is removed with rmdir. The contents
# of the original folder will not be removed.

0 comments on commit f71fd25

Please sign in to comment.