Skip to content

Commit b8dd422

Browse files
author
Mr. Outis
committed
py3: fspath source and link_name
1 parent 6eac40d commit b8dd422

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dvc/system.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ def copy(src, dest):
2222

2323
@staticmethod
2424
def hardlink(source, link_name):
25+
source, link_name = fspath(source), fspath(link_name)
2526
try:
2627
os.link(source, link_name)
2728
except OSError as exc:
2829
raise DvcException("failed to link") from exc
2930

3031
@staticmethod
3132
def symlink(source, link_name):
33+
source, link_name = fspath(source), fspath(link_name)
3234
try:
3335
os.symlink(source, link_name)
3436
except OSError as exc:

0 commit comments

Comments
 (0)