Skip to main content

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
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath

IsDirectory(IVirtualPathProvider, String)

View Source
Declaration
public static bool IsDirectory(this IVirtualPathProvider pathProvider, string filePath)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath

WriteFile(IVirtualPathProvider, String, String)

View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, string textContents)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
System.StringtextContents

WriteFile(IVirtualPathProvider, String, Stream)

View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, Stream stream)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
System.IO.Streamstream

WriteFile(IVirtualPathProvider, String, Byte[])

View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, byte[] bytes)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
System.Byte[]bytes

WriteFile(IVirtualPathProvider, String, ReadOnlyMemory<Char>)

View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, ReadOnlyMemory<char> text)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
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
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
ReadOnlyMemory<System.Byte>bytes

WriteFile(IVirtualPathProvider, String, Object)

View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, string filePath, object contents)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
System.Objectcontents

AppendFile(IVirtualPathProvider, String, String)

View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, string textContents)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
System.StringtextContents

AppendFile(IVirtualPathProvider, String, Stream)

View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, Stream stream)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
System.IO.Streamstream

AppendFile(IVirtualPathProvider, String, Byte[])

View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, byte[] bytes)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
System.Byte[]bytes

AppendFile(IVirtualPathProvider, String, Object)

View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, object contents)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
System.Objectcontents

AppendFile(IVirtualPathProvider, String, ReadOnlyMemory<Char>)

View Source
Declaration
public static void AppendFile(this IVirtualPathProvider pathProvider, string filePath, ReadOnlyMemory<char> text)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
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
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath
ReadOnlyMemory<System.Byte>bytes

WriteFile(IVirtualPathProvider, IVirtualFile, String)

View Source
Declaration
public static void WriteFile(this IVirtualPathProvider pathProvider, IVirtualFile file, string filePath = null)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
ServiceStack.IO.IVirtualFilefile
System.StringfilePath

DeleteFile(IVirtualPathProvider, String)

View Source
Declaration
public static void DeleteFile(this IVirtualPathProvider pathProvider, string filePath)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringfilePath

DeleteFile(IVirtualPathProvider, IVirtualFile)

View Source
Declaration
public static void DeleteFile(this IVirtualPathProvider pathProvider, IVirtualFile file)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
ServiceStack.IO.IVirtualFilefile

DeleteFiles(IVirtualPathProvider, IEnumerable<String>)

View Source
Declaration
public static void DeleteFiles(this IVirtualPathProvider pathProvider, IEnumerable<string> filePaths)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
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
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile>files

DeleteFolder(IVirtualPathProvider, String)

View Source
Declaration
public static void DeleteFolder(this IVirtualPathProvider pathProvider, string dirPath)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.StringdirPath

WriteFiles(IVirtualPathProvider, Dictionary<String, String>)

View Source
Declaration
public static void WriteFiles(this IVirtualPathProvider pathProvider, Dictionary<string, string> textFiles)
Parameters
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
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
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
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
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
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
TypeName
ServiceStack.IO.IVirtualPathProviderpathProvider
System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile>srcFiles
System.Func<ServiceStack.IO.IVirtualFile,System.String>toPath