tgstation / rust-g

Rust based libraries for tgstation
MIT License
28 stars 100 forks source link

HTTP request, specifying an output path to a folder that doesn't exist will throw an error #126

Open Watermelon914 opened 1 year ago

Watermelon914 commented 1 year ago

image If you specify an output filepath to a folder that doesn't exist for a http request, you'll be hit with this error. I'm unsure if this is a bug or not, but it's somewhat problematic for trying to store temporary files in a subfolder within the tmp folder on the tgstation repo.

ZeWaka commented 2 months ago

strange https://github.com/tgstation/rust-g/blob/31e067110ab39c612576e046559341809a61e590/src/http.rs#L137-L140