public CloudFileNode NewFileItem(ICloudDrive drive, string fileName) { if (drive == null) { throw new ArgumentNullException(nameof(drive)); } var newItem = new CloudFileNode(drive.NewFileItem(Contract, fileName, Stream.Null)); children.Add(newItem.Name, newItem); newItem.SetParent(this); return(newItem); }
public StreamContext(CloudFileNode file, FileAccess access) { File = file; Access = access; }
public CloudFileNode NewFileItem(ICloudDrive drive, string fileName) { var newItem = new CloudFileNode(drive.NewFileItem(Contract, fileName, new MemoryStream())); children.Add(newItem.Name, newItem); newItem.SetParent(this); return newItem; }