File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
import posixpath
5
5
import logging
6
- import uuid
7
6
8
7
from funcy import cached_property , retry , compose , decorator
9
8
from funcy .py3 import cat
14
13
from dvc .remote .base import RemoteBASE
15
14
from dvc .config import Config
16
15
from dvc .exceptions import DvcException
16
+ from dvc .utils import tmp_fname
17
17
18
18
logger = logging .getLogger (__name__ )
19
19
@@ -47,10 +47,6 @@ def _wrap_pydrive_retriable(call):
47
47
)
48
48
49
49
50
- def get_tmp_filepath ():
51
- return posixpath .join (".dvc" , "tmp" , str (uuid .uuid4 ()))
52
-
53
-
54
50
class RemoteGDrive (RemoteBASE ):
55
51
scheme = Schemes .GDRIVE
56
52
path_cls = CloudURLInfo
@@ -80,7 +76,7 @@ def init_drive(self):
80
76
"https://man.dvc.org/remote/add."
81
77
)
82
78
self .gdrive_user_credentials_path = (
83
- get_tmp_filepath ( )
79
+ tmp_fname ( ".dvc/tmp/" )
84
80
if os .getenv (RemoteGDrive .GDRIVE_USER_CREDENTIALS_DATA )
85
81
else self .config .get (
86
82
Config .SECTION_GDRIVE_USER_CREDENTIALS_FILE ,
You can’t perform that action at this time.
0 commit comments