diff --git a/src/Disks/IDisk.h b/src/Disks/IDisk.h index 2e83bf0ec26..e299fffbf41 100644 --- a/src/Disks/IDisk.h +++ b/src/Disks/IDisk.h @@ -14,7 +14,6 @@ #include #include #include -#include #include "Poco/Util/AbstractConfiguration.h" namespace fs = std::filesystem; @@ -315,7 +314,7 @@ inline String fileName(const String & path) /// Return directory path for the specified path. inline String directoryPath(const String & path) { - return Poco::Path(path).setFileName("").toString(); + return fs::path(path).parent_path() / ""; } }