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
Add API for obtaining list of directories #20314
Conversation
Commit has a typo in the title: dor -> for |
Should I also update API version? |
b781f48
to
54a8b60
Compare
It would be more clear and robust if it just returns content of given directory (only subdirectories if we don't need files). |
This is exactly why I used name autocompletion, because it completes provided paths. (not only lists directories)
Maybe it is a better idea. Filtering paths can be done on the frontend side and seems to be a bit more universal. |
Exactly. It is enough to get the directory listing only once. |
Is it good now? |
No. |
084862f
to
8cb5cf8
Compare
This comment was marked as outdated.
This comment was marked as outdated.
@pktiuk |
Yes, I want to implement it, but I would like deal with it later in separate PR. AFAIK other WebUI-s may be also interested in this API (VueTorrent/VueTorrent#1459 ). |
Although it is not for development, we already have something alike: https://github.com/qbittorrent/docker-qbittorrent-nox
Speaking for myself:
|
54ed3a8
to
e12e31a
Compare
29f43b3
to
6a8327c
Compare
6a8327c
to
2e122e3
Compare
f661832
to
37100be
Compare
5844b99
to
c8fd032
Compare
@pktiuk |
This is just an early idea proposing adding an API which could be used for obtaining list of directories.
This could be used in every prompt in WEBUI which asks user about a specific path in the system. (It would be a really nice quality of life improvement)
Example implementation of mechanism helping with writing paths
(screenshot from syncthing)
I know this change would require also updating docs and is probably written badly. But now this is just a draft.