46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using BS.SharedLauncher.Utils;
|
|
using BS.SharedLauncher.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Security.Cryptography;
|
|
using BS.SharedLauncher.Update;
|
|
using System.Diagnostics;
|
|
|
|
namespace BS.SharedLauncher.Update
|
|
{
|
|
[DebuggerDisplay("{AbsolutePath}")]
|
|
public class PlanerFileInfo
|
|
{
|
|
public string Name { get; set; }
|
|
public string AbsolutePath { get; set; }
|
|
public string RelativePath { get; set; }
|
|
public string Checksum { get; set; }
|
|
|
|
public PlanerFileInfo()
|
|
{
|
|
}
|
|
|
|
public PlanerFileInfo(FileInfo fileInfo, string relativeTo) : this()
|
|
{
|
|
Name = fileInfo.Name;
|
|
AbsolutePath = fileInfo.FullName;
|
|
RelativePath = PathUtils.MakeRelativePath(relativeTo, fileInfo.FullName);
|
|
}
|
|
|
|
public PlanerFileInfo Copy()
|
|
{
|
|
return new PlanerFileInfo()
|
|
{
|
|
Name = Name,
|
|
AbsolutePath = AbsolutePath,
|
|
RelativePath = RelativePath,
|
|
Checksum = Checksum
|
|
};
|
|
}
|
|
}
|
|
}
|