From b73d38a7813d1a498f74bef609411518c1468e01 Mon Sep 17 00:00:00 2001 From: pjft Date: Fri, 2 Mar 2018 10:07:58 +0000 Subject: [PATCH] Fixing common path detection --- es-core/src/utils/FileSystemUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);