mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
can_write_to_data_dir() touched and then deleted data/test.txt, which silently wiped any file of the user's that happened to have that name. It now uses tempfile.NamedTemporaryFile in the data dir, which picks an unused name and removes only the file it created.