public Stream OpenFile(FileSystemPath path, FileAccess access) { tmpfile = new DeDupeTempFile(_fileSystems, path, db, key, disableProgress); tmpfile.Download(); return(new FileStream(tmpfile.Path, FileMode.Open, FileAccess.Read)); }
public Stream CreateFile(FileSystemPath path) { tmpfile = new DeDupeTempFile(_fileSystems, path, db, key, disableProgress); return(new FileStream(tmpfile.Path, FileMode.Open, FileAccess.Write)); }