Skip to content

Commit

Permalink
target: Make Target.tempfile() use Target.tmp_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-raillard-arm committed Nov 20, 2024
1 parent 4826609 commit 8d03e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devlib/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ async def tempfile(self, prefix='', suffix=''):
uuid=uuid.uuid4().hex,
suffix=suffix,
)
path = self.get_workpath(name)
self.path.join(self.tmp_directory, name)
if (await self.file_exists.asyn(path)):
raise FileExistsError('Path already exists on the target: {}'.format(path))
else:
Expand Down

0 comments on commit 8d03e87

Please sign in to comment.