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