You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The warp::fs filters currently decode the path tail into a safe PathBuf. It'd be useful to expose that by itself so others can use it while combining their own file filters.
Something like warp::fs::path_buf() could work.
The text was updated successfully, but these errors were encountered:
There is a lot of valuable code in warp::fs. I would really like a warp::reply::file(...) function or similar, that would essentially correspond to the private warp::filter::fs::file_reply() function. Also, it would maybe help with #526, if the warp::fs code would be more modular and more public. I tried to refactor it a bit, but my Rust/Async/Tokio skills are currently not up to this task.
The
warp::fs
filters currently decode the path tail into a safePathBuf
. It'd be useful to expose that by itself so others can use it while combining their own file filters.Something like
warp::fs::path_buf()
could work.The text was updated successfully, but these errors were encountered: