private Stream CreateWriteStream() { try { if (_stream == null) { _stream = new WebFileStream(this, _uri.LocalPath, FileMode.Create, FileAccess.Write, FileShare.Read); _fileAccess = FileAccess.Write; _writing = true; } return(_stream); } catch (Exception e) { throw new WebException(e.Message, e); } }
private Stream CreateWriteStream() { try { if (_stream == null) { _stream = new WebFileStream(this, _uri.LocalPath, FileMode.Create, FileAccess.Write, FileShare.Read); _fileAccess = FileAccess.Write; _writing = true; } return _stream; } catch (Exception e) { throw new WebException(e.Message, e); } }