We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1202394 commit 7a741ceCopy full SHA for 7a741ce
1 file changed
lib/source/pl/core/resolvers.cpp
@@ -17,6 +17,11 @@ namespace pl::core::resolvers {
17
bool exists = false;
18
// if the path has no extension
19
if (!fullPath.has_extension()) {
20
+ // If the path points to a directory, check for a file called "pattern" inside of it
21
+ if (std::fs::is_directory(fullPath)) {
22
+ fullPath /= "pattern";
23
+ }
24
+
25
for (const auto &ext : { "hexpat", "pat" }) {
26
fullPath.replace_extension(ext);
27
exists = std::fs::exists(fullPath);
0 commit comments