Container bug fix
This commit is contained in:
@ -140,8 +140,8 @@ public class A_Property
|
||||
}
|
||||
else if (!isIgnoreExtension && isValidImageFormatExtension)
|
||||
{
|
||||
if (populateId && (id is null || !indices.Any()) && !_IndicesFromNew.Any() && !_KeyValuePairs.Any())
|
||||
throw new Exception("In order to keep six character indices at least one need to have an item!");
|
||||
// if (populateId && (id is null || !indices.Any()) && !_IndicesFromNew.Any() && !_KeyValuePairs.Any())
|
||||
// throw new Exception("In order to keep six character indices at least one need to have an item!");
|
||||
try
|
||||
{
|
||||
using Image image = Image.FromFile(filteredSourceDirectoryFileHolder.FullName);
|
||||
@ -611,7 +611,7 @@ public class A_Property
|
||||
collectionDescription: string.Empty));
|
||||
}
|
||||
|
||||
public void ParallelWork(long ticks, List<Shared.Models.Container> containers, bool firstPass)
|
||||
public void ParallelWork(long ticks, Shared.Models.Container[] containers, bool firstPass)
|
||||
{
|
||||
if (_Log is null)
|
||||
throw new NullReferenceException(nameof(_Log));
|
||||
@ -619,7 +619,7 @@ public class A_Property
|
||||
bool? anyFilesMoved;
|
||||
Item[] filteredItems;
|
||||
List<Exception> exceptions = new();
|
||||
int containersCount = containers.Count;
|
||||
int containersCount = containers.Length;
|
||||
List<Tuple<string, DateTime>> sourceDirectoryChanges = new();
|
||||
string propertyRoot = IResult.GetResultsGroupDirectory(_Configuration, nameof(A_Property));
|
||||
foreach (Shared.Models.Container container in containers)
|
||||
@ -706,12 +706,13 @@ public class A_Property
|
||||
return results.OrderBy(l => l.Ticks).ToArray();
|
||||
}
|
||||
|
||||
public static List<Shared.Models.Container> Get(Configuration configuration, A_Property propertyLogic)
|
||||
public static Shared.Models.Container[] Get(Configuration configuration, A_Property propertyLogic)
|
||||
{
|
||||
List<Shared.Models.Container> results;
|
||||
Shared.Models.Container[] results;
|
||||
bool firstRun = false;
|
||||
long ticks = DateTime.Now.Ticks;
|
||||
List<string> exceptionsDirectories = new();
|
||||
results = Stateless.Container.GetContainers(configuration, propertyLogic);
|
||||
results = Stateless.Container.GetContainers(configuration, firstRun, propertyLogic);
|
||||
propertyLogic.ParallelWork(ticks, results, firstPass: false);
|
||||
if (exceptionsDirectories.Any())
|
||||
throw new Exception();
|
||||
|
Reference in New Issue
Block a user