Closed gugu closed 5 years ago
Probably it is better to replace:
The operating system will clean up when needed. No point in us wasting resources and adding complexity.
with:
macOS will clean up unused files in three days. No point in us wasting resources and adding complexity.
I spent 10 minutes reading docs to prove it is not correct. Other people will just trust this phrase. Your module generates filename so it is okay to not to write unlink function there. But this phrase is misleading
I'm using tempy
in AWS Lambda and it's quite useful. However I have to clean up after myself manually, since the storage in Lambda is only 512MB and can get used up quite quickly with subsequent invocations of the same execution context.
It would be nice to have a cleanup method.
Here is the example: