<PackageReference Include="Testably.Abstractions.FileSystem.Interface" Version="10.2.0-pre.1" />

System.IO.Abstractions.IFile

public interface IFile : IFileSystemEntity
Abstractions for File.
void AppendAllLines(string path, IEnumerable<string> contents)

void AppendAllLines(string path, IEnumerable<string> contents, Encoding encoding)

Task AppendAllLinesAsync(string path, IEnumerable<string> contents, CancellationToken cancellationToken = default)

Task AppendAllLinesAsync(string path, IEnumerable<string> contents, Encoding encoding, CancellationToken cancellationToken = default)

void AppendAllText(string path, string contents)

void AppendAllText(string path, string contents, Encoding encoding)

Task AppendAllTextAsync(string path, string contents, CancellationToken cancellationToken = default)

Task AppendAllTextAsync(string path, string contents, Encoding encoding, CancellationToken cancellationToken = default)

StreamWriter AppendText(string path)

void Copy(string sourceFileName, string destFileName)

void Copy(string sourceFileName, string destFileName, bool overwrite)

FileSystemStream Create(string path)

FileSystemStream Create(string path, int bufferSize)

FileSystemStream Create(string path, int bufferSize, FileOptions options)

IFileSystemInfo CreateSymbolicLink(string path, string pathToTarget)

StreamWriter CreateText(string path)

void Decrypt(string path)

void Delete(string path)

void Encrypt(string path)

bool Exists(string path)

void Move(string sourceFileName, string destFileName)

void Move(string sourceFileName, string destFileName, bool overwrite)

FileSystemStream Open(string path, FileMode mode)

FileSystemStream Open(string path, FileMode mode, FileAccess access)

FileSystemStream Open(string path, FileMode mode, FileAccess access, FileShare share)

FileSystemStream Open(string path, FileStreamOptions options)

StreamReader OpenText(string path)

byte[] ReadAllBytes(string path)

Task<byte[]> ReadAllBytesAsync(string path, CancellationToken cancellationToken = default)

string[] ReadAllLines(string path)

string[] ReadAllLines(string path, Encoding encoding)

Task<string[]> ReadAllLinesAsync(string path, CancellationToken cancellationToken = default)

Task<string[]> ReadAllLinesAsync(string path, Encoding encoding, CancellationToken cancellationToken = default)

string ReadAllText(string path)

string ReadAllText(string path, Encoding encoding)

Task<string> ReadAllTextAsync(string path, CancellationToken cancellationToken = default)

Task<string> ReadAllTextAsync(string path, Encoding encoding, CancellationToken cancellationToken = default)

IEnumerable<string> ReadLines(string path)

IEnumerable<string> ReadLines(string path, Encoding encoding)

void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName)

void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors)

IFileSystemInfo ResolveLinkTarget(string linkPath, bool returnFinalTarget)

void SetAttributes(string path, FileAttributes fileAttributes)

void SetCreationTime(string path, DateTime creationTime)

void SetCreationTimeUtc(string path, DateTime creationTimeUtc)

void SetLastAccessTime(string path, DateTime lastAccessTime)

void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)

void SetLastWriteTime(string path, DateTime lastWriteTime)

void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc)

void WriteAllBytes(string path, byte[] bytes)

Task WriteAllBytesAsync(string path, byte[] bytes, CancellationToken cancellationToken = default)

void WriteAllLines(string path, string[] contents)

void WriteAllLines(string path, IEnumerable<string> contents)

void WriteAllLines(string path, string[] contents, Encoding encoding)

void WriteAllLines(string path, IEnumerable<string> contents, Encoding encoding)

Task WriteAllLinesAsync(string path, IEnumerable<string> contents, CancellationToken cancellationToken = default)

Task WriteAllLinesAsync(string path, IEnumerable<string> contents, Encoding encoding, CancellationToken cancellationToken = default)

void WriteAllText(string path, string contents)

void WriteAllText(string path, string contents, Encoding encoding)

Task WriteAllTextAsync(string path, string contents, CancellationToken cancellationToken = default)

Task WriteAllTextAsync(string path, string contents, Encoding encoding, CancellationToken cancellationToken = default)