mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ZipFile, ZipFileEntry, FileTools] Move more things around
This commit is contained in:
@@ -13,7 +13,7 @@ namespace SabreTools.Helper
|
||||
/// Based on work by GordonJ for RomVault
|
||||
/// https://github.com/gjefferyes/RomVault/blob/master/ROMVault2/SupportedFiles/Zip/zipFile.cs
|
||||
/// </remarks>
|
||||
public class ZipFileEntry
|
||||
public class ZipFileEntry : IEquatable<ZipFileEntry>
|
||||
{
|
||||
#region Private instance variables
|
||||
|
||||
@@ -155,6 +155,16 @@ namespace SabreTools.Helper
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Check if an entry equals another (use only name for now)
|
||||
/// </summary>
|
||||
/// <param name="zfe"></param>
|
||||
/// <returns></returns>
|
||||
public bool Equals(ZipFileEntry zfe)
|
||||
{
|
||||
return (String.Equals(_fileName, zfe.FileName, StringComparison.InvariantCultureIgnoreCase));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Read the central directory entry from the input stream
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user