Skip to main content

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
TypeName
System.StringfilePath
System.StringtextContents

WriteFileAsync(String, Stream)

View Source
Declaration
Task WriteFileAsync(string filePath, Stream stream)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.StringfilePath
System.IO.Streamstream

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
TypeName
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
TypeName
System.StringfilePath
System.StringtextContents

AppendFileAsync(String, Stream)

View Source
Declaration
Task AppendFileAsync(string filePath, Stream stream)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.StringfilePath
System.IO.Streamstream

DeleteFileAsync(String)

View Source
Declaration
Task DeleteFileAsync(string filePath)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.StringfilePath

DeleteFilesAsync(IEnumerable<String>)

View Source
Declaration
Task DeleteFilesAsync(IEnumerable<string> filePaths)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>filePaths

DeleteFolderAsync(String)

View Source
Declaration
Task DeleteFolderAsync(string dirPath)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.StringdirPath