Fixes #1025
Needs some testing, and I should really add a unit test, but please go ahead and have a look.
3 new commits added
more checks in unit test
actually add unit test
create parent dir for symlink if needed
:thumbsup:
rebased onto 484bf0181a38bd95edc504165b09c81e96c37755
Commit fd4eb9fa fixes this pull-request
Pull-Request has been merged by mikem
Fixes #1025