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 // Get the TGZ and TXZ status for later
GZipArchive tgz = new(file); GZipArchive tgz = new(file);
XZArchive txz = new(file); XZArchive txz = new(file);
bool isSingleTorrent = tgz.IsTorrent() || txz.IsTorrent(); bool isSingleTorrent = tgz.IsStandardized() || txz.IsStandardized();
// Get the base archive first // Get the base archive first
BaseArchive? archive = FileTypeTool.CreateArchiveType(file); BaseArchive? archive = FileTypeTool.CreateArchiveType(file);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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