Skip to content

Commit

Permalink
preprocessor handle directories as files
Browse files Browse the repository at this point in the history
- close #2692
  • Loading branch information
guwirth committed Aug 27, 2024
1 parent 41ab59e commit 68ef722
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,7 @@ public void finishedPreprocessing() {
* its existence cannot be determined.
*/
public boolean exists(Path fileName) {
// File.exists has better performance as Files.exists(path)
return fileExists.computeIfAbsent(fileName, f -> f.toFile().exists());
return fileExists.computeIfAbsent(fileName, f -> f.toFile().isFile());
}

private void addPredefinedMacros() {
Expand Down

0 comments on commit 68ef722

Please sign in to comment.