diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java index 2138af1ba7..fe3731ef90 100644 --- a/src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java +++ b/src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java @@ -537,6 +537,15 @@ public class InMemoryFileSystem extends ScopeEscapableFileSystem { } @Override + protected boolean isSpecialFile(Path path, boolean followSymlinks) { + try { + return stat(path, followSymlinks).isSpecialFile(); + } catch (IOException e) { + return false; + } + } + + @Override protected boolean isSymbolicLink(Path path) { try { return stat(path, false).isSymbolicLink(); |