Show / Hide Table of Contents

Interface IFileStorage

Namespace: Eco.Core.FileStorage
Assembly: Eco.Core.dll
Syntax
public interface IFileStorage

Properties

QualifiedName

Declaration
string QualifiedName { get; }
Property Value
Type Description
System.String

Methods

CopyFileToAsync(String, Stream)

Declaration
Task CopyFileToAsync(string fileName, Stream destination)
Parameters
Type Name Description
System.String fileName
System.IO.Stream destination
Returns
Type Description
System.Threading.Tasks.Task

CreateAsync(String, Stream)

Declaration
Task CreateAsync(string fileName, Stream inputStream)
Parameters
Type Name Description
System.String fileName
System.IO.Stream inputStream
Returns
Type Description
System.Threading.Tasks.Task

CreateDirectoryAsync(String)

Declaration
Task<IFileStorage> CreateDirectoryAsync(string dirName)
Parameters
Type Name Description
System.String dirName
Returns
Type Description
System.Threading.Tasks.Task<IFileStorage>

DeleteDirectoryAsync(String)

Declaration
Task DeleteDirectoryAsync(string dirName)
Parameters
Type Name Description
System.String dirName
Returns
Type Description
System.Threading.Tasks.Task

DeleteFileAsync(String)

Declaration
Task DeleteFileAsync(string fileName)
Parameters
Type Name Description
System.String fileName
Returns
Type Description
System.Threading.Tasks.Task

DirectoryExistsAsync(String)

Declaration
Task<bool> DirectoryExistsAsync(string dirName)
Parameters
Type Name Description
System.String dirName
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

ExistsAsync()

Declaration
Task<bool> ExistsAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

ExistsAsync(String)

Declaration
Task<bool> ExistsAsync(string fileName)
Parameters
Type Name Description
System.String fileName
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

GetDirectoriesAsync()

Declaration
Task<IEnumerable<FileStorageDirectoryInfo>> GetDirectoriesAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<FileStorageDirectoryInfo>>

GetDirectory(String)

Declaration
IFileStorage GetDirectory(string dirName)
Parameters
Type Name Description
System.String dirName
Returns
Type Description
IFileStorage

GetFileNamesAsync()

Declaration
Task<List<string>> GetFileNamesAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.List<System.String>>

GetLastWriteTimeAsync()

Declaration
Task<DateTime> GetLastWriteTimeAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.DateTime>

GetQualifiedName(String)

Declaration
string GetQualifiedName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.String

ReadAllBytes(String)

Declaration
byte[] ReadAllBytes(string fileName)
Parameters
Type Name Description
System.String fileName
Returns
Type Description
System.Byte[]

ReadAllTextAsync(String)

Declaration
Task<string> ReadAllTextAsync(string fileName)
Parameters
Type Name Description
System.String fileName
Returns
Type Description
System.Threading.Tasks.Task<System.String>

WriteAllTextAsync(String, String)

Declaration
Task WriteAllTextAsync(string fileName, string contents)
Parameters
Type Name Description
System.String fileName
System.String contents
Returns
Type Description
System.Threading.Tasks.Task

Extension Methods

FileStorageExtensions.GetOrCreateDirectoryAsync(IFileStorage, String)
FileStorageExtensions.CopyFileToLocalAsync(IFileStorage, String, String)
FileStorageExtensions.CopyFileToTempAsync(IFileStorage, String)
PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾