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

Improve file listing API #2

Open
jkc opened this issue Aug 8, 2017 · 0 comments
Open

Improve file listing API #2

jkc opened this issue Aug 8, 2017 · 0 comments

Comments

@jkc
Copy link
Contributor

jkc commented Aug 8, 2017

Root file listing methods should return some kind of file set struct that offers methods for interacting with said set.

Method suggestions:

  • sort (default name, or by other options: size, etc...)
  • strings (return slice of string URIs for each file)
  • filter (filter list by string/regex etc...)
  • files (return slice of vfs.File interfaces)

Should retain, or create, convenience methods allowing for direct return of strings and vfs.Files for common use cases to prevent excess boilerplate.

@jkc jkc added the enhancement label Aug 8, 2017
@funkyshu funkyshu added the v7 label Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants