Files
seadisk/include/seafile/api/dir_info.hpp
T
2026-07-12 22:02:00 +08:00

41 lines
849 B
C++

//
// Created by Shell on 2026-06-18.
//
#ifndef SEADISK_DIR_INFO_HPP
#define SEADISK_DIR_INFO_HPP
#include <string>
#include <nlohmann/json.hpp>
namespace seafile
{
/**
* @brief Repository directory information.
*/
struct DirInfo final
{
/// Repository identifier.
std::string repo_id;
/// Full directory path within the repository.
std::string path;
/// Directory name.
std::string name;
/// Last modification time in ISO 8601 format.
std::string mtime;
/// Current user's permission (e.g. "r", "rw").
std::string permission;
NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(
DirInfo,
repo_id,
path,
name,
mtime,
permission)
};
}
#endif //SEADISK_DIR_INFO_HPP