mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Remove unused method
This commit is contained in:
@@ -2135,28 +2135,6 @@ namespace SabreTools.Library.DatFiles
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Copy a file to the temp directory if needed and return the new paths
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="item">Filename of the item to be checked</param>
|
|
||||||
/// <param name="basePath">Base folder to be used in creating the DAT</param>
|
|
||||||
/// <param name="copyFiles">True if files should be copied to the temp directory before hashing, false otherwise</param>
|
|
||||||
/// <returns>New item and base path strings</returns>
|
|
||||||
private static (string item, string basePath) CopyIfNeeded(string item, string basePath, bool copyFiles)
|
|
||||||
{
|
|
||||||
string newItem = item;
|
|
||||||
string newBasePath = basePath;
|
|
||||||
if (copyFiles)
|
|
||||||
{
|
|
||||||
newBasePath = Path.Combine(Globals.TempDir, Guid.NewGuid().ToString());
|
|
||||||
newItem = Path.GetFullPath(Path.Combine(newBasePath, Path.GetFullPath(item).Remove(0, basePath.Length + 1)));
|
|
||||||
DirectoryExtensions.TryCreateDirectory(Path.GetDirectoryName(newItem));
|
|
||||||
File.Copy(item, newItem, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (newItem, newBasePath);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Process a single file as an archive
|
/// Process a single file as an archive
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user