Hacker News new | ask | show | jobs
by thaumasiotes 1535 days ago
> Turned out that the application was writing a bunch of tempfiles into the cwd and then immediately deleting them.

> I worked around the issue by making the application reuse tempfile names.

Knowing nothing about the issue beyond what you've written here...

why not make the application create a directory for its tempfiles, and then remove that directory along with the tempfiles?

2 comments

additionally, there may be a security issue in reusing temporary filenames.
Yeah, I also moved the tempfiles to a more appropriate location at the same time.