Lines Matching refs:fs
35 namespace fs = std::filesystem;
38 namespace fs = std::experimental::filesystem;
60 return fs::path(path).is_absolute();
69 return (fs::path(a) / b).string();
79 return fs::path(path).parent_path().string();
92 ASSERT(fs::path(base_).is_absolute());
102 fs::path relative;
116 ASSERT(fs::path(path).is_absolute());
117 fs::path value = fs::path(value_);
142 while (!fs::exists(resolvedPath)) {
414 static bool MatchExcludes(const fs::path &path, const std::vector<ArkTsConfig::Pattern> &excludes)
424 static std::vector<fs::path> GetSourceList(const std::shared_ptr<ArkTsConfig> &arktsConfig)
431 auto configDir = fs::absolute(fs::path(arktsConfig->ConfigPath())).parent_path();
436 if (!fs::equivalent(arktsConfig->OutDir(), configDir)) {
441 std::vector<fs::path> sourceList;
443 if (!Check(fs::exists(f) && fs::path(f).has_filename(), "No such file: ", f)) {
453 auto traverseRoot = fs::path(include.GetSearchRoot());
454 if (!fs::exists(traverseRoot)) {
457 if (!fs::is_directory(traverseRoot)) {
463 for (const auto &dirEntry : fs::recursive_directory_iterator(traverseRoot)) {
474 static fs::path Relative(const fs::path &src, const fs::path &base)
476 fs::path tmpPath = src;
477 fs::path relPath;
478 while (!fs::equivalent(tmpPath, base)) {
481 return fs::path();
489 static fs::path ComputeDestination(const fs::path &src, const fs::path &rootDir, const fs::path &outDir)
497 fs::create_directories(dst.parent_path());