#pragma once #include "ghc/filesystem.hpp" namespace fs = ghc::filesystem; namespace mcp_utils { std::wstring utf8ToWString(const std::string &utf8Str); bool hasFileExist(const std::wstring &filePath); bool hasDirExist(const std::wstring &filePath); std::wstring getModelDir(); ghc::filesystem::path getModelDirPath(); fs::path relative2absolute(const std::string &relativePath , const fs::path &rootPath = getModelDirPath()); fs::path relative2absolute(const fs::path &relativePath , const fs::path &rootPath = getModelDirPath()); }