public void SetOperationResult(OperationResult result) { lastStream?.Dispose(); lastStream = null; if (result != OperationResult.Ok) Success = false; }
public int GetStream(int index, out ISequentialOutStream outStream, AskMode askExtractMode) { outStream = null; if ((index == this.index) && (askExtractMode == AskMode.kExtract)) outStream = new OutStreamWrapper(stream); return 0; }
public int GetStream(int index, out ISequentialOutStream outStream, AskMode askExtractMode) { var entry = entries[index]; outStream = null; var outPath = Path.Combine(path, entry.Path); if (entry.IsDirectory) Directory.CreateDirectory(outPath); else outStream = lastStream = new OutStreamWrapper(File.Create(outPath)); return 0; }