コード例 #1
0
 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));
 }
コード例 #2
0
 public Stream CreateFile(FileSystemPath path)
 {
     tmpfile = new DeDupeTempFile(_fileSystems, path, db, key, disableProgress);
     return(new FileStream(tmpfile.Path, FileMode.Open, FileAccess.Write));
 }