1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-03-04 09:17:51 +00:00

target: Make Target.tempfile() use Target.tmp_directory

This commit is contained in:
Douglas Raillard 2024-11-20 12:56:36 +00:00 committed by Marc Bonnici
parent e402fc7544
commit 3e1c928db3

View File

@ -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: