public LocalFile(string path, OpenMode mode) { LocalFileSystem.OpenFileInternal(out FileStream stream, path, mode).ThrowIfFailure(); Mode = mode; Stream = stream; File = new StreamFile(Stream, mode); }
public LocalFile(FileStream stream, OpenMode mode) { Mode = mode; Stream = stream; File = new StreamFile(Stream, mode); }