mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[FileTools] Locks no longer needed
This commit is contained in:
@@ -382,12 +382,9 @@ namespace SabreTools.Helper.Tools
|
||||
foreach (string file in files)
|
||||
{
|
||||
try
|
||||
{
|
||||
lock (outputs)
|
||||
{
|
||||
outputs.Add(Path.GetFullPath(file) + (appendparent ? "¬" + Path.GetFullPath(input) : ""));
|
||||
}
|
||||
}
|
||||
catch (PathTooLongException)
|
||||
{
|
||||
logger.Warning("The path for " + file + " was too long");
|
||||
@@ -401,12 +398,9 @@ namespace SabreTools.Helper.Tools
|
||||
else if (File.Exists(input))
|
||||
{
|
||||
try
|
||||
{
|
||||
lock (outputs)
|
||||
{
|
||||
outputs.Add(Path.GetFullPath(input) + (appendparent ? "¬" + Path.GetFullPath(input) : ""));
|
||||
}
|
||||
}
|
||||
catch (PathTooLongException)
|
||||
{
|
||||
logger.Warning("The path for " + input + " was too long");
|
||||
|
||||
Reference in New Issue
Block a user