volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Querying the file system

Hi,

What are the best practices in EPiServer 7 for programatically querying the virtual path provider/file system/document repository? What I want to do is to simply list all files in a certain folder or perhaps search for files with a certain name or type. Do we have some new cool services/helper classes to inject and utilize in EPiServer 7? Or can I use the SearchService somehow? 

Last time I worked with this I extended the FileSystemDataSource class and built my own kind of "file repository". But that solution was rather bulky and not-so-good-looking. Any suggestions on how to proceed and building this?

(Sorry if I mixed up the terminology - havn't worked with this in some years).

Regards

#77525
Nov 20, 2013 16:42
error This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.