View Source
Class FileSystemWrapper
All custom file systems that are based upon another IFileSystem should inherit from FileSystemWrapper
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public abstract class FileSystemWrapper : IFileSystem
Constructors
View Source
FileSystemWrapper(IFileSystem)
Declaration
protected FileSystemWrapper(IFileSystem innerFileSystem)
Parameters
Properties
View Source
CanAddPhysical
Declaration
public virtual bool CanAddPhysical { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
AddFile(String, Stream)
Declaration
public virtual void AddFile(string path, Stream stream)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.IO.Stream |
stream |
|
View Source
AddFile(String, Stream, Boolean)
Declaration
public virtual void AddFile(string path, Stream stream, bool overrideExisting)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.IO.Stream |
stream |
|
System.Boolean |
overrideExisting |
|
View Source
AddFile(String, String, Boolean, Boolean)
Declaration
public virtual void AddFile(string path, string physicalPath, bool overrideIfExists = true, bool copy = false)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.String |
physicalPath |
|
System.Boolean |
overrideIfExists |
|
System.Boolean |
copy |
|
View Source
DeleteDirectory(String)
Declaration
public virtual void DeleteDirectory(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
View Source
DeleteDirectory(String, Boolean)
Declaration
public virtual void DeleteDirectory(string path, bool recursive)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Boolean |
recursive |
|
View Source
DeleteFile(String)
Declaration
public virtual void DeleteFile(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
View Source
DirectoryExists(String)
Declaration
public virtual bool DirectoryExists(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
FileExists(String)
Declaration
public virtual bool FileExists(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
GetCreated(String)
Declaration
public virtual DateTimeOffset GetCreated(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.DateTimeOffset |
|
View Source
GetDirectories(String)
Declaration
public virtual IEnumerable<string> GetDirectories(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
View Source
GetFiles(String)
Declaration
public virtual IEnumerable<string> GetFiles(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
View Source
GetFiles(String, String)
Declaration
public virtual IEnumerable<string> GetFiles(string path, string filter)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.String |
filter |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
View Source
GetFullPath(String)
Declaration
public virtual string GetFullPath(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
View Source
GetLastModified(String)
Declaration
public virtual DateTimeOffset GetLastModified(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.DateTimeOffset |
|
View Source
GetRelativePath(String)
Declaration
public virtual string GetRelativePath(string fullPathOrUrl)
Parameters
Type |
Name |
Description |
System.String |
fullPathOrUrl |
|
Returns
Type |
Description |
System.String |
|
View Source
GetSize(String)
Declaration
public virtual long GetSize(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Int64 |
|
View Source
GetUrl(String)
Declaration
public virtual string GetUrl(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
View Source
OpenFile(String)
Declaration
public virtual Stream OpenFile(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.IO.Stream |
|