2020-04-17 03:52:19 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Wabbajack.Common;
|
|
|
|
|
|
|
|
|
|
namespace Wabbajack.VirtualFileSystem
|
|
|
|
|
{
|
|
|
|
|
public interface IExtractedFile
|
|
|
|
|
{
|
|
|
|
|
public Task<Hash> HashAsync();
|
|
|
|
|
public DateTime LastModifiedUtc { get; }
|
|
|
|
|
public long Size { get; }
|
|
|
|
|
|
2020-05-25 16:30:47 +00:00
|
|
|
|
public ValueTask<Stream> OpenRead();
|
2020-04-17 03:52:19 +00:00
|
|
|
|
|
|
|
|
|
public Task<bool> CanExtract();
|
|
|
|
|
|
2020-07-28 03:30:25 +00:00
|
|
|
|
public Task<ExtractedFiles> ExtractAll(WorkQueue queue, IEnumerable<RelativePath> Only = null, bool throwOnError = false);
|
2020-04-17 03:52:19 +00:00
|
|
|
|
|
|
|
|
|
public Task MoveTo(AbsolutePath path);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|