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

System.IO.Abstractions.IFile

public interface IFile : IFileSystemEntity
Abstractions for File.
void AppendAllBytes(string path, byte[] bytes)

void AppendAllBytes(string path, ReadOnlySpan<byte> bytes)

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

Task AppendAllBytesAsync(string path, ReadOnlyMemory<byte> bytes, CancellationToken cancellationToken = default)

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)

void AppendAllText(string path, ReadOnlySpan<char> contents)

void AppendAllText(string path, ReadOnlySpan<char> contents, Encoding encoding)

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

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

Task AppendAllTextAsync(string path, ReadOnlyMemory<char> contents, CancellationToken cancellationToken = default)

Task AppendAllTextAsync(string path, ReadOnlyMemory<char> 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)

FileAttributes GetAttributes(SafeFileHandle fileHandle)

DateTime GetCreationTime(SafeFileHandle fileHandle)

DateTime GetCreationTimeUtc(SafeFileHandle fileHandle)

DateTime GetLastAccessTime(SafeFileHandle fileHandle)

DateTime GetLastAccessTimeUtc(SafeFileHandle fileHandle)

DateTime GetLastWriteTime(SafeFileHandle fileHandle)

DateTime GetLastWriteTimeUtc(SafeFileHandle fileHandle)

UnixFileMode GetUnixFileMode(SafeFileHandle fileHandle)

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)

IAsyncEnumerable<string> ReadLinesAsync(string path, CancellationToken cancellationToken = default)

IAsyncEnumerable<string> ReadLinesAsync(string path, Encoding encoding, CancellationToken cancellationToken = default)

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 SetAttributes(SafeFileHandle fileHandle, FileAttributes fileAttributes)

void SetCreationTime(string path, DateTime creationTime)

void SetCreationTime(SafeFileHandle fileHandle, DateTime creationTime)

void SetCreationTimeUtc(string path, DateTime creationTimeUtc)

void SetCreationTimeUtc(SafeFileHandle fileHandle, DateTime creationTimeUtc)

void SetLastAccessTime(string path, DateTime lastAccessTime)

void SetLastAccessTime(SafeFileHandle fileHandle, DateTime lastAccessTime)

void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)

void SetLastAccessTimeUtc(SafeFileHandle fileHandle, DateTime lastAccessTimeUtc)

void SetLastWriteTime(string path, DateTime lastWriteTime)

void SetLastWriteTime(SafeFileHandle fileHandle, DateTime lastWriteTime)

void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc)

void SetLastWriteTimeUtc(SafeFileHandle fileHandle, DateTime lastWriteTimeUtc)

void SetUnixFileMode(string path, UnixFileMode mode)

void SetUnixFileMode(SafeFileHandle fileHandle, UnixFileMode mode)

void WriteAllBytes(string path, byte[] bytes)

void WriteAllBytes(string path, ReadOnlySpan<byte> bytes)

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

Task WriteAllBytesAsync(string path, ReadOnlyMemory<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)

void WriteAllText(string path, ReadOnlySpan<char> contents)

void WriteAllText(string path, ReadOnlySpan<char> contents, Encoding encoding)

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

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

Task WriteAllTextAsync(string path, ReadOnlyMemory<char> contents, CancellationToken cancellationToken = default)

Task WriteAllTextAsync(string path, ReadOnlyMemory<char> contents, Encoding encoding, CancellationToken cancellationToken = default)