remote: use uuid for tmp name generation

This commit is contained in:
Ruslan Kuprieiev
2018-11-08 00:48:41 +02:00
committed by GitHub
parent 763839f6d0
commit e6e72febf9
+2 -2
View File
@@ -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