mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 23:09:55 +01:00
Merge pull request #609 from efiop/master
dvc: cloud: cache_file_key: don't forget to assign to relpath
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ Make your data science projects reproducible and shareable.
|
||||
"""
|
||||
import os
|
||||
|
||||
VERSION = '0.9.3'
|
||||
VERSION = '0.9.4'
|
||||
|
||||
if os.getenv('APPVEYOR_REPO_TAG', '').lower() != 'true' and os.getenv('TRAVIS_TAG', '') == '':
|
||||
# Dynamically update version
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user