Files
2026-07-30 20:59:22 +08:00

35 lines
623 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// Created by Shell on 2026-06-18.
//
#ifndef SEADISK_FILE_CONTEXT_HPP
#define SEADISK_FILE_CONTEXT_HPP
#include <cstdint>
#include <string>
namespace seafile::fs
{
struct SeaFileContext final
{
enum class Type
{
FILE,
DIRECTORY,
};
/// 仓库 id
std::string repo_id;
/// 仓库内绝对路径(如 /folder/file.txt)
std::string repo_path;
/// 虚拟全路径(如 /repo-name/folder/file.txt)
std::string full_path;
Type type;
uint64_t size{};
};
}
#endif //SEADISK_FILE_CONTEXT_HPP