From 387562b43358632414dcef76c522886c5f324acb Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 21 Jun 2018 00:12:48 +0300 Subject: [PATCH] cloud: use posixpath to manipulate paths Signed-off-by: Ruslan Kuprieiev --- dvc/remote/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/remote/base.py b/dvc/remote/base.py index 763d01277..2bc64d1b8 100644 --- a/dvc/remote/base.py +++ b/dvc/remote/base.py @@ -1,6 +1,7 @@ import os import re import tempfile +import posixpath from dvc.config import Config from dvc.logger import Logger @@ -66,7 +67,7 @@ class RemoteBase(object): """ Key of a file within the bucket """ relpath = os.path.relpath(fname, self.project.cache.local.cache_dir) relpath = relpath.replace('\\', '/') - return '{}/{}'.format(self.prefix, relpath).strip('/') + return posixpath.join(self.prefix, relpath).strip('/') def cache_key_name(self, path): relpath = os.path.relpath(path, self.project.cache.local.cache_dir)