mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 07:18:27 +01:00
remote: use uuid for tmp name generation
This commit is contained in:
+2
-2
@@ -80,8 +80,8 @@ class RemoteBase(object):
|
||||
@staticmethod
|
||||
def tmp_file(fname):
|
||||
""" Temporary name for a partial download """
|
||||
# FIXME probably better use uuid()
|
||||
return fname + '.part'
|
||||
import uuid
|
||||
return fname + '.' + str(uuid.uuid4())
|
||||
|
||||
def save_info(self, path_info):
|
||||
raise NotImplementedError
|
||||
|
||||
Reference in New Issue
Block a user