mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
Merge pull request #874 from efiop/master
utils: copyfile: properly join paths
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ def copyfile(src, dest, no_progress_bar=False, name=None):
|
||||
fsrc = open(src, 'rb')
|
||||
|
||||
if os.path.isdir(dest):
|
||||
fdest = open(dest + '/' + os.path.basename(src), 'wb+')
|
||||
fdest = open(os.path.join(dest, os.path.basename(src)), 'wb+')
|
||||
else:
|
||||
fdest = open(dest, 'wb+')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user