-
Notifications
You must be signed in to change notification settings - Fork 22
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
Search files endpoint #43
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently on the new frontend, you can only search for files in the current directory. While the panel could also do a "global" search across all sub-directories it would probably be more efficient to let wings handle that. This way the panel only has to send one api request instead of recursively getting the contents of all directories.
Parameters should be the base directory where the search starts and a search term. Ideally this search should support regex or at least some simple patterns like
*.txt
. Returned should be a list of found file paths.Either the wings config or the endpoint itself should have a way to configure a timeout (max search time) to prevent "endless searches".
Optionally it would be nice to blacklist certain directories, e.g. to exlude a
node_modules
orvendor
folder.The text was updated successfully, but these errors were encountered: