mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SevenZipArchive, XZArchive, Utilities] Cleanup including temp path
This commit is contained in:
@@ -396,7 +396,7 @@ namespace SabreTools.Library.FileTypes
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Create the temp directory
|
// Create the temp directory
|
||||||
string tempPath = Path.Combine(Path.GetTempPath(), new Guid().ToString());
|
string tempPath = Path.Combine(outDir, new Guid().ToString());
|
||||||
if (!Directory.Exists(tempPath))
|
if (!Directory.Exists(tempPath))
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(tempPath);
|
Directory.CreateDirectory(tempPath);
|
||||||
@@ -609,7 +609,7 @@ namespace SabreTools.Library.FileTypes
|
|||||||
keys.Sort(ZipFile.TorrentZipStringCompare);
|
keys.Sort(ZipFile.TorrentZipStringCompare);
|
||||||
|
|
||||||
// Create the temp directory
|
// Create the temp directory
|
||||||
string tempPath = Path.Combine(Path.GetTempPath(), new Guid().ToString());
|
string tempPath = Path.Combine(outDir, new Guid().ToString());
|
||||||
if (!Directory.Exists(tempPath))
|
if (!Directory.Exists(tempPath))
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(tempPath);
|
Directory.CreateDirectory(tempPath);
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ namespace SabreTools.Library.FileTypes
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Create the temp directory
|
// Create the temp directory
|
||||||
string tempPath = Path.Combine(Path.GetTempPath(), new Guid().ToString());
|
string tempPath = Path.Combine(outDir, new Guid().ToString());
|
||||||
if (!Directory.Exists(tempPath))
|
if (!Directory.Exists(tempPath))
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(tempPath);
|
Directory.CreateDirectory(tempPath);
|
||||||
@@ -407,7 +407,7 @@ namespace SabreTools.Library.FileTypes
|
|||||||
keys.Sort(ZipFile.TorrentZipStringCompare);
|
keys.Sort(ZipFile.TorrentZipStringCompare);
|
||||||
|
|
||||||
// Create the temp directory
|
// Create the temp directory
|
||||||
string tempPath = Path.Combine(Path.GetTempPath(), new Guid().ToString());
|
string tempPath = Path.Combine(outDir, new Guid().ToString());
|
||||||
if (!Directory.Exists(tempPath))
|
if (!Directory.Exists(tempPath))
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(tempPath);
|
Directory.CreateDirectory(tempPath);
|
||||||
|
|||||||
@@ -974,7 +974,6 @@ namespace SabreTools.Library.Tools
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filename">Name of the file to be parsed</param>
|
/// <param name="filename">Name of the file to be parsed</param>
|
||||||
/// <returns>The DatFormat corresponding to the DAT</returns>
|
/// <returns>The DatFormat corresponding to the DAT</returns>
|
||||||
/// <remarks>There is currently no differentiation between XML and SabreDAT here</remarks>
|
|
||||||
public static DatFormat GetDatFormat(string filename)
|
public static DatFormat GetDatFormat(string filename)
|
||||||
{
|
{
|
||||||
// Limit the output formats based on extension
|
// Limit the output formats based on extension
|
||||||
|
|||||||
Reference in New Issue
Block a user