-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flag to render raw view instead of HTML #97
Comments
Hey! Sounds like an interesting idea, so basically you just want the file listing part, with the files being simply text, is that correct? I like the idea, what I'm not sure is if there are any drawbacks, if you could share your use case (besides what you shared above) that could help me figure things out! Let me know! |
I'm writing data pipelines using Dagster. I trigger certain behaviour based on configuration files that are uploaded to an HTTP server. I don't want anything too complicated (which is what drew me to this project). I currently use a bit of Python to parse the HTML and locate the files, but I'd rather just have the option of stripping out as much HTML as possible. A simple |
Hey @dsgibbons! Thinking more about this, I think it could be possible if we introduce querystring parameters, so something like:
Would render this text version of the list. It would only work in folders, and for files will hold no effect. Let me know if something like that would work for you and I can start thinking about its implementation! |
Hi @patrickdappollonio, that sounds OK to me! Thank you for considering my proposal. |
Say I have a local filesystem with
Running
curl localhost:5000
currently outputs something like:If I use a script to interact with http-server, I need to parse this HTML. Can there be an option like --list-raw or --disable-html, where:
would yield
and
would yield
The text was updated successfully, but these errors were encountered: