added check to see if local path and cache location are equal
This commit is contained in:
Родитель
952785905c
Коммит
9e7fb82ceb
|
@ -968,7 +968,15 @@ namespace CollectSFData.Common
|
|||
Log.Error($"sasKey, fileUris, or cacheLocation should be populated as file source.");
|
||||
retval = false;
|
||||
}
|
||||
if (HasValue(CacheLocation) && HasValue(LocalPath)) {
|
||||
LocalPath = FileManager.NormalizePath(LocalPath);
|
||||
|
||||
if (LocalPath.Equals(CacheLocation))
|
||||
{
|
||||
Log.Error("CacheLocation and LocalPath should be different directories in order to perform local ingestion.");
|
||||
retval = false;
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче