Skip to content

在 util/fs 模块中添加遍历目录的函数 #60

@hevake

Description

@hevake
Struct NodeInfo {
  enum class Type {
     kDir,  //! 目录
     kFile, //! 普通文件
     kElf,  //! 可执行文件
     kPipe, //! 管道文件
     ...
  };

  Type type;
  uint64_t create_time;
  uint64_t modify_time;
};

bool ListDirectory(const std::string &dir_path, std::map<std::string, NodeInfo> &items);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions