mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Fix full pathname issue for single files
This commit is contained in:
@@ -213,6 +213,10 @@ namespace SabreTools.Helper
|
|||||||
if (reader.Entry != null && reader.Entry.Key.Contains(entryname))
|
if (reader.Entry != null && reader.Entry.Key.Contains(entryname))
|
||||||
{
|
{
|
||||||
outfile = Path.Combine(tempdir, reader.Entry.Key);
|
outfile = Path.Combine(tempdir, reader.Entry.Key);
|
||||||
|
if (!Directory.Exists(Path.GetDirectoryName(outfile)))
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(outfile));
|
||||||
|
}
|
||||||
reader.WriteEntryToFile(outfile, ExtractOptions.Overwrite);
|
reader.WriteEntryToFile(outfile, ExtractOptions.Overwrite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user