34 lines
604 B
C++
34 lines
604 B
C++
//
|
||
// Created by Shell on 2026-06-18.
|
||
//
|
||
|
||
#ifndef SEADISK_FILE_CONTEXT_HPP
|
||
#define SEADISK_FILE_CONTEXT_HPP
|
||
#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
|