diff --git a/dvc/cloud/base.py b/dvc/cloud/base.py index 9e983753d..3a23a23e6 100644 --- a/dvc/cloud/base.py +++ b/dvc/cloud/base.py @@ -75,7 +75,7 @@ class DataCloudBase(object): def cache_file_key(self, fname): """ Key of a file within the bucket """ relpath = os.path.relpath(fname, self._cloud_settings.cache.cache_dir) - relpath.replace('\\', '/') + relpath = relpath.replace('\\', '/') return '{}/{}'.format(self.storage_prefix, relpath).strip('/') @staticmethod