FileSystemProviders.FileSystemProvider Class
Namespace: Nucleus.Abstractions.FileSystemProviders
Assembly: Nucleus.Abstractions.dll
Abstract class implemented by all file system providers.
Properties
Capabilities
Property
File system provider capabilities. Most file system providers will support all capabilities, but implementations can set this property in their constructor to indicate that some capabilities are not supported.
Key
Property
File system provider key (from configuration)
Methods
Configure
(IConfigurationSection, String) Method
Configure (IConfigurationSection configSection, String HomeDirectory)
Sets the configuration for this instance.
CreateFolder
(String, String) Method
CreateFolder (String parentPath, String newFolder)
Create a new folder.
DeleteFile
(String) Method
DeleteFile (String path)
Delete an existing file.
DeleteFolder
(String, Boolean) Method
DeleteFolder (String path, Boolean recursive)
Delete an existing folder.
GetFile
(String) Method
GetFile (String path)
Get an existing file.
GetFileContents
(String) Method
GetFileContents (String path)
Retrieve the contents of an existing file and return as a stream.
GetFileDirectUrl
(String, DateTime) Method
GetFileDirectUrl (String path, DateTime expiresOn)
Get an direct access Url for the file.
GetFolder
(String) Method
GetFolder (String path)
Get an existing folder.
GetRootUri
GetRootUri ()
Get the root Uri for this file system provider. This is used when preparing the Content-Security-Policy header, which controls where images, css and other resources can come from.
ListFolder
(String) Method
ListFolder (String path)
List the contents of a folder.
ListFolder
(String, String) Method
ListFolder (String path, String pattern)
List the contents of a folder, filtered by the regular expression specified in pattern.
RenameFile
(String, String) Method
RenameFile (String path, String newName)
Rename an existing file.
RenameFolder
(String, String) Method
RenameFolder (String path, String newName)
Rename an existing folder.
SaveFile
(String, String, Stream, Boolean) Method
SaveFile (String parentPath, String newFileName, Stream content, Boolean overwrite)
Save a file.