mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Rename IsTorrent to IsStandardized
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ namespace SabreTools.FileTypes.Archives
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override bool IsTorrent()
|
public override bool IsStandardized()
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ namespace SabreTools.FileTypes.Archives
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override bool IsTorrent()
|
public override bool IsStandardized()
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user