Temporary fix

This commit is contained in:
kssenii 2021-04-30 19:14:04 +03:00
parent c609119daf
commit 6867ea2c73

View File

@ -13,6 +13,7 @@
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <Poco/Timestamp.h> #include <Poco/Timestamp.h>
#include <filesystem> #include <filesystem>
#include <Poco/Path.h>
namespace fs = std::filesystem; namespace fs = std::filesystem;
@ -289,8 +290,7 @@ inline String fullPath(const DiskPtr & disk, const String & path)
/// Return parent path for the specified path. /// Return parent path for the specified path.
inline String parentPath(const String & path) inline String parentPath(const String & path)
{ {
auto fs_path = fs::path(path).parent_path() / ""; return Poco::Path(path).parent().toString();
return fs_path.string();
} }
/// Return file name for the specified path. /// Return file name for the specified path.