Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

sort and filter options #27

Open
mattijn opened this issue Sep 4, 2018 · 1 comment
Open

sort and filter options #27

mattijn opened this issue Sep 4, 2018 · 1 comment

Comments

@mattijn
Copy link

mattijn commented Sep 4, 2018

Congrats for your inspiring project!
I'm investigation some options for an online FTP filebrowser and your project looks really interesting.

To adopt this project I have two questions about the inclusion of options for sorting and filtering.

Regarding sorting, I would like to be able to sort based on filename, or even better, file creation-time.
Regarding filtering, I would like to filter on parts of the filename.

If this is possible in the current framework, could you give me a pointer to where this could be included or modified in the source code?

@tobias-kuendig
Copy link
Member

tobias-kuendig commented Sep 5, 2018

Thank you for your feedback.

There is currently no such option and there are no plans (or rather resources) to add these. PRs are always welcome.

You could pass a filter via the DirectoryController to the DirectoryRepository's listing method and filter the $contents before returning them:

https://github.com/OFFLINE-GmbH/Online-FTP-S3/blob/master/app/Repositories/DirectoryRepository.php#L12

There is already some default sort functionality available.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants