svenstaro/miniserve

[Feature Request] add cli argument allowing automatic creation of a missing directory

Opened this issue · 0 comments

For example i have empty miniserve root, and i want upload file.txt to not-exist directory, curl command will be

curl -F'path=@file.txt' 'http://127.0.0.1:8080/upload\?path\=/not-exist/

and miniserve will create not-exist/ dir in miniserve root and upload file there.
Also i think this function need separate cli argument for obvious reasons