mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 12:32:15 +00:00
applied patch for #448 from Valeri.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4242 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
8077d3abbd
commit
b41d0d7404
3 files changed
+87
-12
No files matched your search
@@ -455,6 +455,17 @@ public final class FilePath implements Serializable {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the file size in bytes.
|
||||
*/
|
||||
public long length() throws IOException, InterruptedException {
|
||||
return act(new FileCallable<Long>() {
|
||||
public Long invoke(File f, VirtualChannel channel) throws IOException {
|
||||
return f.length();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* List up files in this directory.
|
||||
|
||||
Reference in new issue
Block a user