kean / Get

Web API client built using async/await
MIT License
943 stars 75 forks source link

Fix Downloads Folder Path #72

Closed LePips closed 1 year ago

LePips commented 1 year ago

I was implementing file downloads into my app and noticed that the temporary directory was not being cleared, even though DataLoader should do so. Download file paths were not created properly and instead were formatted as such:

/private/.../tmp/com.github.kean.get/Downloads.foo-bar.tmp

This fixes downloads so that they properly download into the tmp/com.github.kean.get/Downloads/ folder and can be cleared.

However, pre-existing downloads still act as memory zombies in tmp/com.github.kean.get/ and will require manual deletion.

kean commented 1 year ago

Thanks, @LePips.