Example #1
0
        public LocalFile(string path, OpenMode mode)
        {
            LocalFileSystem.OpenFileInternal(out FileStream stream, path, mode).ThrowIfFailure();

            Mode   = mode;
            Stream = stream;
            File   = new StreamFile(Stream, mode);
        }
Example #2
0
 public LocalFile(FileStream stream, OpenMode mode)
 {
     Mode   = mode;
     Stream = stream;
     File   = new StreamFile(Stream, mode);
 }