list files - include files in the list of subpaths.
ignore - paths that start with these charcters will not be listed.
*/
-void GetRecursiveSubPaths(const std::string &path, std::vector<std::string> &dst,
- bool list_files, const std::set<char> &ignore = {});
-
-// Tries to delete all, returns false if any failed
-bool DeletePaths(const std::vector<std::string> &paths);
+void GetRecursiveSubPaths(const std::string &path,
+ std::vector<std::string> &dst,
+ bool list_files,
+ const std::set<char> &ignore = {});
// Only pass full paths to this one. True on success.
bool RecursiveDeleteContent(const std::string &path);
// returns "" if there is only one path component.
// removed: If non-NULL, receives the removed component(s).
// count: Number of components to remove
-std::string RemoveLastPathComponent(
- const std::string &path, std::string *removed = NULL, int count = 1);
+std::string RemoveLastPathComponent(const std::string &path,
+ std::string *removed = NULL, int count = 1);
// Remove "." and ".." path components and for every ".." removed, remove
// the last normal path component before it. Unlike AbsolutePath,
bool safeWriteToFile(const std::string &path, const std::string &content);
+bool ReadFile(const std::string &path, std::string &out);
+
bool Rename(const std::string &from, const std::string &to);
} // namespace fs