fix condition
This commit is contained in:
parent
24295bfe42
commit
94be564f6e
|
|
@ -22,7 +22,7 @@ public partial class FileRepository
|
||||||
foreach (var file in Directory.GetFiles(dir))
|
foreach (var file in Directory.GetFiles(dir))
|
||||||
{
|
{
|
||||||
var fileName = Path.GetFileName(file);
|
var fileName = Path.GetFileName(file);
|
||||||
if (scriptNames != null || !scriptNames.Contains(fileName))
|
if (scriptNames != null && !scriptNames.Contains(fileName))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
@ -152,8 +152,10 @@ public partial class FileRepository
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Private methods
|
||||||
private string BuildAgentCodeDir(string agentId)
|
private string BuildAgentCodeDir(string agentId)
|
||||||
{
|
{
|
||||||
return Path.Combine(_dbSettings.FileRepository, _agentSettings.DataDir, agentId, AGENT_CODES_FOLDER);
|
return Path.Combine(_dbSettings.FileRepository, _agentSettings.DataDir, agentId, AGENT_CODES_FOLDER);
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue