예제 #1
0
		public void SetOperationResult(OperationResult result)
		{
			lastStream?.Dispose();
			lastStream = null;
			if (result != OperationResult.Ok)
				Success = false;
		}
예제 #2
0
		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;
		}
예제 #3
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;
		}