Open ronaldbarendse opened 2 years ago
These are just some idea's that came up recently related to reworking the file providers:
Try*
methods) or something similar/identical to the CMS Attempt
/OperationResult
;IFileProvider
methods: GetDirectoryContents
and GetFileInfo
;IFileProvider
, so we can e.g. make PhysicalStorageProvider
inherit from the StorageProviderBase
class and accept a PhysicalFileProvider
(instead of having to inherit from this class).
This PR builds upon https://github.com/umbraco/Umbraco.StorageProviders/pull/11#issuecomment-909081829.
Instead of wrapping the media
IFileSystem
(Umbraco's read/write IO abstraction) as anIFileProvider
(ASP.NET Core read-only IO abstraction) to then use in theStaticFileMiddleware
, this directly implements theIFileProvider
for the read-only part and exposes the write-operations in a newIStorageProvider
abstraction.This is a POC and still needs a lot of work!