-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature Request: Add list_folders
Function
#1
Comments
Previously, list_files would fail to parse folders due to missing fields.
Thanks for the excellent report! Version You can create a list of folders from your returned |
Thank you for the quick fix ! |
Understood. I'll add some docs explaining this for now while I think about what kind of solution would be the least cumbersome. Perhaps a few others will offer some suggestions as to what they think would be the most user friendly option, so I'll leave this open for discussion. |
Feature Request: Add
list_folders
FunctionHello,
Here is my feature request. I’d like to mention that it was written with the help of ChatGPT, as I’m not very confident in my English. I hope that’s okay with you.
Is your feature request related to a problem? Please describe.
In my current project, I need to list folders within a given directory using the Supabase storage client implemented in this library. While attempting to use the
list_files
function on a directory containing only folders, I encountered the following error:This behavior suggests a potential bug in handling directories that contain only folders. As a result, the current implementation of
list_files
is not sufficient for listing folders.Describe the solution you'd like
I propose adding a dedicated
list_folders
function to the library. This function would:This feature would enhance the library's usability and align it with the goal of providing a complete and easy-to-use API for Supabase storage.
Describe alternatives you've considered
To work around the issue, I implemented a simplified version of the
list_folders
function using a custom trait. While this solution works for now, it is limited in scope and lacks the robustness and maintainability of a built-in library function.Additional context
The issue appears to stem from how the
list_files
function interprets and handles folder metadata. Here's an example of the data returned in the error:A dedicated
list_folders
function could resolve such ambiguities and ensure compatibility with folder-specific use cases.Let me know if additional details or code examples would be helpful.
The text was updated successfully, but these errors were encountered: