We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c8a37d commit 953dbb6Copy full SHA for 953dbb6
src/main/java/com/bazel_diff/BazelSourceFileTarget.java
@@ -24,7 +24,7 @@ class BazelSourceFileTargetImpl implements BazelSourceFileTarget {
24
String filenameSubstring = name.substring(2);
25
String filenamePath = filenameSubstring.replaceFirst(":", "/");
26
File sourceFile = new File(workingDirectory.toString(), filenamePath);
27
- if (sourceFile.canRead()) {
+ if (sourceFile.isFile() && sourceFile.canRead()) {
28
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
29
outputStream.write(Files.readAllBytes(sourceFile.toPath()));
30
outputStream.write(digest);
0 commit comments