wabbajack/Wabbajack.FileExtractor/ExtractedFiles/IExtractedFile.cs
2021-10-23 10:51:17 -06:00

19 lines
657 B
C#

using System.Threading;
using System.Threading.Tasks;
using Wabbajack.DTOs.Streams;
using Wabbajack.Paths;
namespace Wabbajack.FileExtractor.ExtractedFiles;
public interface IExtractedFile : IStreamFactory
{
public bool CanMove { get; set; }
/// <summary>
/// Possibly destructive move operation. Should greatly optimize file copies when the file
/// exists on the same disk as the newPath. Performs a copy if a move is not possible.
/// </summary>
/// <param name="newPath">destination to move the entry to</param>
/// <returns></returns>
public ValueTask Move(AbsolutePath newPath, CancellationToken token);
}