Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hevake opened this issue Nov 2, 2023 · 0 comments
Open

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

hevake opened this issue Nov 2, 2023 · 0 comments

Comments

@hevake
Copy link
Member

hevake commented Nov 2, 2023

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant