Skip to content
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

Send dir listing as a stream or single request #7

Open
5HT2 opened this issue Feb 16, 2022 · 0 comments
Open

Send dir listing as a stream or single request #7

5HT2 opened this issue Feb 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@5HT2
Copy link
Owner

5HT2 commented Feb 16, 2022

I don't think an fmt.Fprintf for each individual file is the best idea for large directories, given my screenshots folder is reaching ~5000 screenshots.

Below is the current code for printing it:

https://github.com/l1ving/fs-over-http/blob/bdd0e31a7cea69d470fe23a07aa04b991acd303c/main.go#L255-L282

Sending it as one request or a stream would be ideal.

@5HT2 5HT2 added the enhancement New feature or request label Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant