Rename IsTorrent to IsStandardized

This commit is contained in:
Matt Nadareski
2025-01-04 21:42:46 -05:00
parent e5c0d55d18
commit c24fdfc534
8 changed files with 8 additions and 8 deletions

View File

@@ -308,7 +308,7 @@ namespace SabreTools.DatTools
// Get the TGZ and TXZ status for later
GZipArchive tgz = new(file);
XZArchive txz = new(file);
bool isSingleTorrent = tgz.IsTorrent() || txz.IsTorrent();
bool isSingleTorrent = tgz.IsStandardized() || txz.IsStandardized();
// Get the base archive first
BaseArchive? archive = FileTypeTool.CreateArchiveType(file);

View File

@@ -267,7 +267,7 @@ namespace SabreTools.FileTypes.Archives
}
/// <inheritdoc/>
public override bool IsTorrent()
public override bool IsStandardized()
{
// Check for the file existing first
if (Filename == null || !File.Exists(Filename))

View File

@@ -282,7 +282,7 @@ namespace SabreTools.FileTypes.Archives
}
/// <inheritdoc/>
public override bool IsTorrent()
public override bool IsStandardized()
{
throw new NotImplementedException();
}

View File

@@ -354,7 +354,7 @@ namespace SabreTools.FileTypes.Archives
}
/// <inheritdoc/>
public override bool IsTorrent()
public override bool IsStandardized()
{
// If we have an invalid file
if (Filename == null)

View File

@@ -271,7 +271,7 @@ namespace SabreTools.FileTypes.Archives
}
/// <inheritdoc/>
public override bool IsTorrent()
public override bool IsStandardized()
{
throw new NotImplementedException();
}

View File

@@ -245,7 +245,7 @@ namespace SabreTools.FileTypes.Archives
}
/// <inheritdoc/>
public override bool IsTorrent()
public override bool IsStandardized()
{
// Check for the file existing first
if (Filename == null || !File.Exists(Filename))

View File

@@ -539,7 +539,7 @@ namespace SabreTools.FileTypes.Archives
}
/// <inheritdoc/>
public override bool IsTorrent()
public override bool IsStandardized()
{
Zip zf = new();
ZipReturn zr = zf.ZipFileOpen(Filename!, -1, true);

View File

@@ -58,7 +58,7 @@ namespace SabreTools.FileTypes
/// <summary>
/// Check whether the input file is a standardized format
/// </summary>
public abstract bool IsTorrent();
public abstract bool IsStandardized();
#endregion