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:
kohsuke committed 2008-11-14 02:26:13 +00:00
1 parent cf13a5c005
commit b5a240df53
1 file changed
+11 -1
+11 -1
View File
@@ -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.