Merge pull request #874 from efiop/master

utils: copyfile: properly join paths
This commit is contained in:
Ruslan Kuprieiev
2018-07-10 21:50:36 +03:00
committed by GitHub
+1 -1
View File
@@ -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+')