Skip to main content

IFileAccess

An interface in Alta.IO, Alta.Utilities.

Minimal file handle: existence, names, delete and refresh. FileInfoWrapper is the plain disk version.

Properties​

MemberWhat it is
bool Exists { get; }Whether the file exists.
string FullName { get; }Full path of the file.
string Name { get; }File name with extension.

Methods​

MemberWhat it is
void Delete()Deletes the file.
Task DeleteAsync()Deletes the file without blocking.
Task<bool> IsExistingAsync()Whether the file exists, as a task.
void Refresh()Refreshes any cached file state.