Exemple #1
0
 private Stream Open(FileMode mode, FileAccess access, FileShare share)
 {
     try
     {
         return(new FileStream(this.Path.ToString(), mode, access, share, 4096, true));
     }
     catch (IOException e)
     {
         throw FileSystemError.AlreadyOpen(this.Path, e);
     }
 }
Exemple #2
0
 public Stream OpenWrite()
 {
     try
     {
         return(this.buffer.OpenWrite());
     }
     catch (IOException e)
     {
         throw FileSystemError.AlreadyOpen(this.Path, e);
     }
 }