Good night dani people.
I'm current developing a project that needs an web API to list all directories and files, and also provide a method to search by name.
I already got it working with Sytem.IO.DirectoryInfo at real time.
//Folders
foreach (DirectoryInfo info in _dirInfo.GetDirectories())
{
}
//and files
IEnumerable<FileInfo> filesInfo = _dirInfo.GetFilesByExtensions(extensions);
The aim is to provide a fast and smart(thumbs and media type) web service to browse the contents of specified media folders.
Worried about performace with multiple clients listing large folders I'd like to ask suggestions for better solutions.
Is indexing in a file or database worth? Or is DirectoryInfo the way to go?
Thanks all!