mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-12 19:42:20 +00:00
FilePath.exists is apparently called from LogRecorderManagerTest.loggingOnSlaves (though I cannot reproduce this).
This commit is contained in:
1 file changed
+8
-6
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user