2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Refinements to avoid bad level linkages

This commit is contained in:
Jack Andersen
2016-09-18 13:46:49 -10:00
parent a0470a3ef5
commit 6de25c1d1d
24 changed files with 137 additions and 44 deletions

View File

@@ -134,7 +134,11 @@ ProjectPath ProjectPath::getCookedPath(const Database::DataSpecEntry& spec) cons
ProjectPath::Type ProjectPath::getPathType() const
{
if (std::regex_search(m_absPath, regGLOB))
return Type::Glob;
{
std::vector<ProjectPath> globResults;
getGlobResults(globResults);
return globResults.size() ? Type::Glob : Type::None;
}
Sstat theStat;
if (hecl::Stat(m_absPath.c_str(), &theStat))
return Type::None;