mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Take two
This commit is contained in:
@@ -65,8 +65,9 @@ The following systems have headers that this program can work with:
|
||||
/// <returns>True if the output file was created, false otherwise</returns>
|
||||
private bool DetectTransformStore(string file, string outDir, bool nostore)
|
||||
{
|
||||
// Ensure the output directory
|
||||
outDir = outDir.Ensure();
|
||||
// Create the output directory if it doesn't exist
|
||||
if (!string.IsNullOrWhiteSpace(outDir) && !Directory.Exists(outDir))
|
||||
Directory.CreateDirectory(outDir);
|
||||
|
||||
logger.User($"\nGetting skipper information for '{file}'");
|
||||
|
||||
|
||||
@@ -59,8 +59,9 @@ The following systems have headers that this program can work with:
|
||||
/// <returns>True if a header was found and appended, false otherwise</returns>
|
||||
public bool RestoreHeader(string file, string outDir)
|
||||
{
|
||||
// Ensure the output directory
|
||||
outDir = outDir.Ensure();
|
||||
// Create the output directory if it doesn't exist
|
||||
if (!string.IsNullOrWhiteSpace(outDir) && !Directory.Exists(outDir))
|
||||
Directory.CreateDirectory(outDir);
|
||||
|
||||
// First, get the SHA-1 hash of the file
|
||||
BaseFile baseFile = BaseFile.GetInfo(file, hashes: Hash.SHA1, asFiles: TreatAsFile.NonArchive);
|
||||
|
||||
Reference in New Issue
Block a user