#3009 Warn user when loading an eclipse EGRID with mixed UPPER and lower case file name.

This commit is contained in:
Gaute Lindkvist
2018-06-11 09:58:34 +02:00
parent 2eee3f770b
commit 62792b59c4
3 changed files with 18 additions and 0 deletions

View File

@@ -263,6 +263,14 @@ QStringList RifEclipseOutputFileTools::filterFileNamesOfType(const QStringList&
return fileNames;
}
//-------------------------------------------------------------------------------------------------------
/// Check if libecl accepts the file name. libecl refuses to open files with mixed case in the file name.
//-------------------------------------------------------------------------------------------------------
bool RifEclipseOutputFileTools::isValidEclipseFileName(const QString& fileName)
{
QString fileNameBase = QFileInfo(fileName).completeBaseName();
return ecl_util_valid_basename(RiaStringEncodingTools::toNativeEncoded(fileNameBase).data());
}
//--------------------------------------------------------------------------------------------------
/// Get set of Eclipse files based on an input file and its path