FileSystemProviders.FileSystemProvider Class
Namespace: Nucleus.Abstractions.FileSystemProviders
Assembly: Nucleus.Abstractions.dll
Abstract class implemented by all file system providers.
Properties
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.
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.