36#ifndef FILEFINDER_HPP_
37#define FILEFINDER_HPP_
42namespace fs = std::filesystem;
131 virtual void SetPath(
const std::string& rLeafName,
const FileFinder& rParentOrSibling);
260 std::vector<FileFinder>
FindMatches(
const std::string& rPattern)
const;
std::string GetLeafNameNoExtension() const
std::string GetRelativePath(const FileFinder &rBasePath) const
bool IsNewerThan(const FileFinder &rOtherEntity) const
static void ReplaceSpacesWithUnderscores(std::string &rPath)
std::string GetAbsolutePath() const
static bool IsAbsolutePath(const std::string &rPath)
void PrivateRemove(bool dangerous=false) const
void DangerousRemove() const
std::string GetExtension() const
std::vector< FileFinder > FindMatches(const std::string &rPattern) const
FileFinder GetParent() const
static void FakePath(RelativeTo::Value fakeWhat, const std::string &rFakePath)
static RelativeTo::Value msFakeWhat
static void ReplaceUnderscoresWithSpaces(std::string &rPath)
bool operator<(const FileFinder &otherFinder) const
std::string GetLeafName() const
virtual void SetPath(const std::string &rPath, RelativeTo::Value relativeTo)
static std::string msFakePath
FileFinder CopyTo(const FileFinder &rDest) const