IVirtualFilesAsync
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IVirtualFilesAsync : IVirtualFiles, IVirtualPathProvider
Methods
WriteFileAsync(String, String)
View Source
Declaration
Task WriteFileAsync(string filePath, string textContents)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | filePath |
System.String | textContents |
WriteFileAsync(String, Stream)
View Source
Declaration
Task WriteFileAsync(string filePath, Stream stream)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | filePath |
System.IO.Stream | stream |
WriteFilesAsync(IEnumerable<IVirtualFile>, Func<IVirtualFile, String>)
View Source
Declaration
Task WriteFilesAsync(IEnumerable<IVirtualFile> files, Func<IVirtualFile, string> toPath = null)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<ServiceStack.IO.IVirtualFile> | files |
System.Func<ServiceStack.IO.IVirtualFile,System.String> | toPath |
AppendFileAsync(String, String)
View Source
Declaration
Task AppendFileAsync(string filePath, string textContents)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | filePath |
System.String | textContents |
AppendFileAsync(String, Stream)
View Source
Declaration
Task AppendFileAsync(string filePath, Stream stream)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | filePath |
System.IO.Stream | stream |
DeleteFileAsync(String)
View Source
Declaration
Task DeleteFileAsync(string filePath)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | filePath |
DeleteFilesAsync(IEnumerable<String>)
View Source
Declaration
Task DeleteFilesAsync(IEnumerable<string> filePaths)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.String> | filePaths |
DeleteFolderAsync(String)
View Source
Declaration
Task DeleteFolderAsync(string dirPath)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | dirPath |