清理旧数据操作无效问题修复

This commit is contained in:
shell committed 2026-07-31 07:18:23 +08:00
1 parent 7296b3096a
commit c451a077b2
7 files changed
+84 -48

No files matched your search

+5
View File
@@ -6,6 +6,7 @@
#define SEADISK_SETTING_HPP
#include <string>
#include <nlohmann/json.hpp>
#include <tl/expected.hpp>
namespace seafile::fs
{
@@ -18,6 +19,10 @@ namespace seafile::fs
std::string mount_label;
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Setting, server, user, password, mount_point, mount_label);
static auto load(const std::string& path) -> tl::expected<Setting, std::exception>;
static auto load(const std::filesystem::path& path) -> tl::expected<Setting, std::exception>;
};
}
#endif //SEADISK_SETTING_HPP