mirror of
https://github.com/ARM-software/devlib.git
synced 2025-03-04 17:27:51 +00:00
target: Make Target.tempfile() use Target.tmp_directory
This commit is contained in:
parent
e402fc7544
commit
3e1c928db3
@ -1340,7 +1340,7 @@ fi
|
|||||||
uuid=uuid.uuid4().hex,
|
uuid=uuid.uuid4().hex,
|
||||||
suffix=suffix,
|
suffix=suffix,
|
||||||
)
|
)
|
||||||
path = self.get_workpath(name)
|
path = self.path.join(self.tmp_directory, name)
|
||||||
if (await self.file_exists.asyn(path)):
|
if (await self.file_exists.asyn(path)):
|
||||||
raise FileExistsError('Path already exists on the target: {}'.format(path))
|
raise FileExistsError('Path already exists on the target: {}'.format(path))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user