Skip to main content

AbstractVirtualDirectoryBase

Assembly: ServiceStack.Common.dll
View Source
Declaration
public abstract class AbstractVirtualDirectoryBase : IVirtualDirectory, IVirtualNode, IEnumerable<IVirtualNode>, IEnumerable

Properties

ParentDirectory

View Source
Declaration
public IVirtualDirectory ParentDirectory { get; set; }

Directory

View Source
Declaration
public IVirtualDirectory Directory { get; }

LastModified

View Source
Declaration
public abstract DateTime LastModified { get; }

VirtualPath

View Source
Declaration
public virtual string VirtualPath { get; }

RealPath

View Source
Declaration
public virtual string RealPath { get; }

IsDirectory

View Source
Declaration
public virtual bool IsDirectory { get; }

IsRoot

View Source
Declaration
public virtual bool IsRoot { get; }

Files

View Source
Declaration
public abstract IEnumerable<IVirtualFile> Files { get; }

Directories

View Source
Declaration
public abstract IEnumerable<IVirtualDirectory> Directories { get; }

Name

View Source
Declaration
public abstract string Name { get; }

Fields

VirtualPathProvider

View Source
Declaration
protected IVirtualPathProvider VirtualPathProvider

Methods

GetFile(String)

View Source
Declaration
public virtual IVirtualFile GetFile(string virtualPath)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.StringvirtualPath

GetDirectory(String)

View Source
Declaration
public virtual IVirtualDirectory GetDirectory(string virtualPath)
Returns

ServiceStack.IO.IVirtualDirectory

Parameters
TypeName
System.StringvirtualPath

GetFile(Stack<String>)

View Source
Declaration
public virtual IVirtualFile GetFile(Stack<string> virtualPath)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.Collections.Generic.Stack<System.String>virtualPath

GetDirectory(Stack<String>)

View Source
Declaration
public virtual IVirtualDirectory GetDirectory(Stack<string> virtualPath)
Returns

ServiceStack.IO.IVirtualDirectory

Parameters
TypeName
System.Collections.Generic.Stack<System.String>virtualPath

GetAllMatchingFiles(String, Int32)

View Source
Declaration
public virtual IEnumerable<IVirtualFile> GetAllMatchingFiles(string globPattern, int maxDepth = 2147483647)
Returns

System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile>

Parameters
TypeName
System.StringglobPattern
System.Int32maxDepth

IEnumerable.GetEnumerator()

View Source
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns

System.Collections.IEnumerator

GetVirtualPathToRoot()

View Source
Declaration
protected virtual string GetVirtualPathToRoot()
Returns

System.String

GetRealPathToRoot()

View Source
Declaration
protected virtual string GetRealPathToRoot()
Returns

System.String

GetPathToRoot(String, Func<IVirtualDirectory, String>)

View Source
Declaration
protected virtual string GetPathToRoot(string separator, Func<IVirtualDirectory, string> pathSel)
Returns

System.String

Parameters
TypeName
System.Stringseparator
System.Func<ServiceStack.IO.IVirtualDirectory,System.String>pathSel

Equals(Object)

View Source
Declaration
public override bool Equals(object obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

GetHashCode()

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32

ToString()

View Source
Declaration
public override string ToString()
Returns

System.String

GetEnumerator()

View Source
Declaration
public abstract IEnumerator<IVirtualNode> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<ServiceStack.IO.IVirtualNode>

GetFileFromBackingDirectoryOrDefault(String)

View Source
Declaration
protected abstract IVirtualFile GetFileFromBackingDirectoryOrDefault(string fileName)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.StringfileName

GetMatchingFilesInDir(String)

View Source
Declaration
protected abstract IEnumerable<IVirtualFile> GetMatchingFilesInDir(string globPattern)
Returns

System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile>

Parameters
TypeName
System.StringglobPattern

GetDirectoryFromBackingDirectoryOrDefault(String)

View Source
Declaration
protected abstract IVirtualDirectory GetDirectoryFromBackingDirectoryOrDefault(string directoryName)
Returns

ServiceStack.IO.IVirtualDirectory

Parameters
TypeName
System.StringdirectoryName

Implements