mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-31 13:35:19 +00:00
added a convenience method
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13228 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
cf13a5c005
commit
b5a240df53
1 file changed
+11
-1
@@ -636,7 +636,17 @@ public final class FilePath implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* List up files in this directory.
|
||||
* List up files and directories in this directory.
|
||||
*
|
||||
* <p>
|
||||
* This method returns direct children of the directory denoted by the 'this' object.
|
||||
*/
|
||||
public List<FilePath> list() throws IOException, InterruptedException {
|
||||
return list((FileFilter)null);
|
||||
}
|
||||
|
||||
/**
|
||||
* List up files in this directory, just like {@link File#listFiles(FileFilter)}.
|
||||
*
|
||||
* @param filter
|
||||
* The optional filter used to narrow down the result.
|
||||
|
||||
Reference in new issue
Block a user