silexlabs / unifile

Unified access to cloud storage services through a simple web API.
https://silexlabs.github.io/unifile/
MIT License
144 stars 32 forks source link

Feature request: search cloud services #162

Open lexoyo opened 4 years ago

lexoyo commented 4 years ago

Following this discussion in CE2 repo, I create an issue here for a new unifile feature

As services like dropbox offer an API to search files and folders (names and content and metadata), I would like to add a search box in CE2 for such services (not for the others like FTP)

You can see where I am going from there @JbIPS, could you give it a thought and we could discuss the implementation here?

JbIPS commented 4 years ago

You know my position on API that are not replicated on all services :blush:

But GitHub must have something like that and fs has find. For other, we could have a more manual approach with warnings about the slowness of the operation.

lexoyo commented 4 years ago

Yes why not... I guess it is not only the time it takes but also we can not find content of files with ftp for example

lexoyo commented 4 years ago

I guess another solution would be to create a separate project just for search? How would it share auth with unifile?

JbIPS commented 4 years ago

I forgot about content and metadata. That's a problem...

Does it have to do that? I mean it's easier to limit the search on Dropbox than to do it in FTP.

And regarding another project, the only solution would be to clone unifile-dropbox and use it directly without the Unifile layer. But I'm not very fond of this solution :confused:

JbIPS commented 4 years ago

And to be honest, we could do it in FTP, by getting a file content and scanning it. That would be huge and heavy, but doable.