public FileInfo(FileSystemPath entity, SharpFileSystem.IFileSystem fileSystem) { this.fileSystem = fileSystem; this.entity = entity; using (var stream = this.fileSystem.OpenFile(entity, FileAccess.Read)) { this.Length = stream.ReadAllBytes().Length; } }
public FileSystemWrapper(SharpFileSystem.IFileSystem fileSystem) { this.fileSystem = fileSystem; }