Edit

Share via


IFileStorageHelper Interface

Definition

Service interface used to store data in a directory/file-system via files and folders.

This interface is meant to help abstract file storage operations across platforms in a library, but the actual behavior will be up to the implementer. Such as, we don't provide a sense of a current directory, so an implementor should consider using full paths to support any file operations. Otherwise, a "directory aware" implementation could be achieved with a current directory field and traversal functions, in which case relative paths would be applicable.

public interface IFileStorageHelper
type IFileStorageHelper = interface
Public Interface IFileStorageHelper
Derived

Methods

CreateFileAsync<T>(String, T)

Saves an object inside a file.

CreateFolderAsync(String)

Ensure a folder exists at the folder path specified.

ReadFileAsync<T>(String, T)

Retrieves an object from a file.

ReadFolderAsync(String)

Retrieves the listings for a folder and the item types.

TryDeleteItemAsync(String)

Deletes a file or folder item.

TryRenameItemAsync(String, String)

Rename an item.

Applies to