diff --git a/es-core/src/utils/FileSystemUtil.cpp b/es-core/src/utils/FileSystemUtil.cpp index 3cbb20a1f..fbff55145 100644 --- a/es-core/src/utils/FileSystemUtil.cpp +++ b/es-core/src/utils/FileSystemUtil.cpp @@ -454,7 +454,7 @@ namespace Utils std::string common = isDirectory(_common) ? getGenericPath(_common) : getParent(_common); // check if path contains common - if(path.find_first_of(common) == 0) + if(path.find(common) == 0) { _contains = true; return path.substr(common.length() + 1);