diff options
Diffstat (limited to 'src/java/org/anarres/cpp/ChrootFileSystem.java')
-rw-r--r-- | src/java/org/anarres/cpp/ChrootFileSystem.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/anarres/cpp/ChrootFileSystem.java b/src/java/org/anarres/cpp/ChrootFileSystem.java index 4fedb71..f917c9e 100644 --- a/src/java/org/anarres/cpp/ChrootFileSystem.java +++ b/src/java/org/anarres/cpp/ChrootFileSystem.java @@ -63,6 +63,12 @@ public class ChrootFileSystem implements VirtualFileSystem { return new ChrootFile(this, name); } + @Override + public boolean isFile() { + File real = new File(root, getPath()); + return real.isFile(); + } + public Source getSource() throws IOException { return new FileLexerSource(new File(root, getPath()), getPath()); |