added check to see if local path and cache location are equal

This commit is contained in:
Victoria 2024-07-24 14:23:32 -07:00
Родитель 952785905c
Коммит 9e7fb82ceb
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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;
}