Metadata-Query
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user