VirtualFilesExtensions
Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class VirtualFilesExtensions
Methods
IsFile(IVirtualPathProvider, String)
View Source
Declaration
public static bool IsFile(this IVirtualPathProvider pathProvider, string filePath)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
IsDirectory(IVirtualPathProvider, String)
View Source
Declaration
public static bool IsDirectory(this IVirtualPathProvider pathProvider, string filePath)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
WriteFile(IVirtualPathProvider, String, String)
View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, string textContents)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
System.String | textContents |
WriteFile(IVirtualPathProvider, String, Stream)
View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, Stream stream)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
System.IO.Stream | stream |
WriteFile(IVirtualPathProvider, String, Byte[])
View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, byte[] bytes)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
System.Byte[] | bytes |
WriteFile(IVirtualPathProvider, String, ReadOnlyMemory<Char>)
View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, ReadOnlyMemory<char> text)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
ReadOnlyMemory<System.Char> | text |
WriteFile(IVirtualPathProvider, String, ReadOnlyMemory<Byte>)
View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, ReadOnlyMemory<byte> bytes)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
ReadOnlyMemory<System.Byte> | bytes |
WriteFile(IVirtualPathProvider, String, Object)
View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, object contents)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
System.Object | contents |
AppendFile(IVirtualPathProvider, String, String)
View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, string textContents)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
System.String | textContents |
AppendFile(IVirtualPathProvider, String, Stream)
View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, Stream stream)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
System.IO.Stream | stream |
AppendFile(IVirtualPathProvider, String, Byte[])
View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, byte[] bytes)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
System.Byte[] | bytes |
AppendFile(IVirtualPathProvider, String, Object)
View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, object contents)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
System.Object | contents |
AppendFile(IVirtualPathProvider, String, ReadOnlyMemory<Char>)
View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, ReadOnlyMemory<char> text)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
ReadOnlyMemory<System.Char> | text |
AppendFile(IVirtualPathProvider, String, ReadOnlyMemory<Byte>)
View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, ReadOnlyMemory<byte> bytes)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
ReadOnlyMemory<System.Byte> | bytes |
WriteFile(IVirtualPathProvider, IVirtualFile, String)
View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, IVirtualFile file, string filePath = null)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
ServiceStack.IO.IVirtualFile | file |
System.String | filePath |
DeleteFile(IVirtualPathProvider, String)
View Source
Declaration
public static void DeleteFile(this IVirtualPathProvider pathProvider, string filePath)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | filePath |
DeleteFile(IVirtualPathProvider, IVirtualFile)
View Source
Declaration
public static void DeleteFile(this IVirtualPathProvider pathProvider, IVirtualFile file)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
ServiceStack.IO.IVirtualFile | file |
DeleteFiles(IVirtualPathProvider, IEnumerable<String>)
View Source
Declaration
public static void DeleteFiles(this IVirtualPathProvider pathProvider, IEnumerable<string> filePaths)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.Collections.Generic.IEnumerable<System.String> | filePaths |
DeleteFiles(IVirtualPathProvider, IEnumerable<IVirtualFile>)
View Source
Declaration
public static void DeleteFiles(this IVirtualPathProvider pathProvider, IEnumerable<IVirtualFile> files)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile> | files |
DeleteFolder(IVirtualPathProvider, String)
View Source
Declaration
public static void DeleteFolder(this IVirtualPathProvider pathProvider, string dirPath)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.String | dirPath |
WriteFiles(IVirtualPathProvider, Dictionary<String, String>)
View Source
Declaration
public static void WriteFiles(this IVirtualPathProvider pathProvider, Dictionary<string, string> textFiles)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.Collections.Generic.Dictionary<System.String,System.String> | textFiles |
WriteFiles(IVirtualPathProvider, Dictionary<String, Object>)
View Source
Declaration
public static void WriteFiles(this IVirtualPathProvider pathProvider, Dictionary<string, object> files)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.Collections.Generic.Dictionary<System.String,System.Object> | files |
WriteFiles(IVirtualPathProvider, IEnumerable<IVirtualFile>, Func<IVirtualFile, String>)
View Source
Declaration
public static void WriteFiles(this IVirtualPathProvider pathProvider, IEnumerable<IVirtualFile> srcFiles, Func<IVirtualFile, string> toPath = null)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile> | srcFiles |
System.Func<ServiceStack.IO.IVirtualFile,System.String> | toPath |
CopyFrom(IVirtualPathProvider, IEnumerable<IVirtualFile>, Func<IVirtualFile, String>)
View Source
Declaration
public static void CopyFrom(this IVirtualPathProvider pathProvider, IEnumerable<IVirtualFile> srcFiles, Func<IVirtualFile, string> toPath = null)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | pathProvider |
System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile> | srcFiles |
System.Func<ServiceStack.IO.IVirtualFile,System.String> | toPath |