FilePath.exists is apparently called from LogRecorderManagerTest.loggingOnSlaves (though I cannot reproduce this).

This commit is contained in:
Jesse Glick committed 2018-03-09 15:03:33 -05:00
1 parent e532099b08
commit 8492421ce1
1 file changed
+8 -6
+8 -6
View File
@@ -1490,12 +1490,14 @@ public final class FilePath implements Serializable {
* Checks if the file exists.
*/
public boolean exists() throws IOException, InterruptedException {
return act(new SecureFileCallable<Boolean>() {
private static final long serialVersionUID = 1L;
public Boolean invoke(File f, VirtualChannel channel) throws IOException {
return stating(f).exists();
}
});
return act(new Exists());
}
private class Exists extends SecureFileCallable<Boolean> {
private static final long serialVersionUID = 1L;
@Override
public Boolean invoke(File f, VirtualChannel channel) throws IOException {
return stating(f).exists();
}
}
/**