Open Slickytail opened 1 year ago
On MacOS/Linux, the archive is saved in /var/tmp/, which most systems do not clean automatically.
/var/tmp/
This can be fixed in three ways:
tempfile.TemporaryDirectory()
tempfile.gettempdir()
/tmp/
On MacOS/Linux, the archive is saved in
/var/tmp/
, which most systems do not clean automatically.This can be fixed in three ways:
tempfile.TemporaryDirectory()
to save downloaded files. The directory will be deleted automatically by python.tempfile.gettempdir()
, which defaults to/tmp/
on Unix-like systems. Unlike/var/tmp/
,/tmp/
is deleted on reboot.