12345678910111213141516171819202122 |
- #pragma once
-
- #include <string>
- #include <vector>
-
- namespace sys {
-
- struct FileInfo {
- long mTimeSec;
- long mTimeNsec;
- bool isDir;
- };
-
- FileInfo fileInfo(const std::string &path);
- bool fileExists(const std::string &path);
- void mkdirp(const std::string &path);
- void execute(const std::vector<std::string> &args, std::string *output, bool print);
- void readDir(const std::string &path, std::vector<std::string> &files);
- void chdir(const std::string &path);
- std::string cwd();
-
- }
|