From 6867ea2c73b0aabcc425be1e7e5ec533b989eefd Mon Sep 17 00:00:00 2001 From: kssenii Date: Fri, 30 Apr 2021 19:14:04 +0300 Subject: [PATCH] Temporary fix --- src/Disks/IDisk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Disks/IDisk.h b/src/Disks/IDisk.h index 778b3dc9bf3..34936373d67 100644 --- a/src/Disks/IDisk.h +++ b/src/Disks/IDisk.h @@ -13,6 +13,7 @@ #include #include #include +#include namespace fs = std::filesystem; @@ -289,8 +290,7 @@ inline String fullPath(const DiskPtr & disk, const String & path) /// Return parent path for the specified path. inline String parentPath(const String & path) { - auto fs_path = fs::path(path).parent_path() / ""; - return fs_path.string(); + return Poco::Path(path).parent().toString(); } /// Return file name for the specified path.