VirtualPathUtils
Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class VirtualPathUtils
Properties
MaxRetryOnExceptionTimeout
View Source
Declaration
public static TimeSpan MaxRetryOnExceptionTimeout { get; }
Methods
TokenizeVirtualPath(String, IVirtualPathProvider)
View Source
Declaration
public static Stack<string> TokenizeVirtualPath(this string str, IVirtualPathProvider pathProvider)
Returns
System.Collections.Generic.Stack<System.String>
Parameters
Type | Name |
---|---|
System.String | str |
ServiceStack.IO.IVirtualPathProvider | pathProvider |
TokenizeVirtualPath(String, String)
View Source
Declaration
public static Stack<string> TokenizeVirtualPath(this string str, string virtualPathSeparator)
Returns
System.Collections.Generic.Stack<System.String>
Parameters
Type | Name |
---|---|
System.String | str |
System.String | virtualPathSeparator |
TokenizeResourcePath(String, Char)
View Source
Declaration
public static Stack<string> TokenizeResourcePath(this string str, char pathSeparator = '.')
Returns
System.Collections.Generic.Stack<System.String>
Parameters
Type | Name |
---|---|
System.String | str |
System.Char | pathSeparator |
GroupByFirstToken(IEnumerable<String>, Char)
View Source
Declaration
public static IEnumerable<IGrouping<string, string[]>> GroupByFirstToken(this IEnumerable<string> resourceNames, char pathSeparator = '.')
Returns
System.Collections.Generic.IEnumerable<System.Linq.IGrouping<System.String,System.String[]>>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.String> | resourceNames |
System.Char | pathSeparator |
ReadAllBytes(IVirtualFile)
View Source
Declaration
public static byte[] ReadAllBytes(this IVirtualFile file)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualFile | file |
Exists(IVirtualNode)
View Source
Declaration
public static bool Exists(this IVirtualNode node)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualNode | node |
IsFile(IVirtualNode)
View Source
Declaration
public static bool IsFile(this IVirtualNode node)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualNode | node |
IsDirectory(IVirtualNode)
View Source
Declaration
public static bool IsDirectory(this IVirtualNode node)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualNode | node |
GetVirtualNode(IVirtualPathProvider, String)
View Source
Declaration
public static IVirtualNode GetVirtualNode(this IVirtualPathProvider pathProvider, string virtualPath)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | virtualPath |
GetDefaultDocument(IVirtualDirectory, List<String>)
View Source
Declaration
public static IVirtualFile GetDefaultDocument(this IVirtualDirectory dir, List<string> defaultDocuments)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualDirectory | dir |
System.Collections.Generic.List<System.String> | defaultDocuments |
SafeFileName(String)
View Source
Declaration
public static string SafeFileName(string uri)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | uri |
IsValidFileName(String)
View Source
Declaration
public static bool IsValidFileName(string path)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | path |
IsValidFilePath(String)
View Source
Declaration
public static bool IsValidFilePath(string path)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | path |