Metadata-Query

This commit is contained in:
2023-07-04 18:09:53 -07:00
parent 0bce2bf22b
commit fcd3f9030d
16 changed files with 709 additions and 85 deletions

View File

@ -69,16 +69,22 @@ public class CopyDistinct
moveBack = false;
else
{
string directory = Path.Combine(_PropertyConfiguration.RootDirectory, _AppSettings.ResultDirectoryKey);
if (!anyLenFiles)
throw new NotSupportedException("Use Mirror-Length app first!");
if (string.IsNullOrEmpty(_AppSettings.ResultDirectoryKey))
throw new NotSupportedException("Change appsettings!");
if (!Directory.Exists(Path.Combine(_PropertyConfiguration.RootDirectory, _AppSettings.ResultDirectoryKey)))
if (!Directory.Exists(directory))
moveBack = false;
else
{
move = false;
moveBack = true;
if (!Directory.GetFiles(directory, "*", SearchOption.AllDirectories).Any())
moveBack = false;
else
{
move = false;
moveBack = true;
}
}
}
return (move, filesCollection, anyLenFiles, moveBack);