From b5a240df538227137f1fd743548eee690af55ff2 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Fri, 14 Nov 2008 02:26:13 +0000 Subject: [PATCH] added a convenience method git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13228 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/FilePath.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index 939cc4d661..e126e40ec7 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -636,7 +636,17 @@ public final class FilePath implements Serializable { } /** - * List up files in this directory. + * List up files and directories in this directory. + * + *

+ * This method returns direct children of the directory denoted by the 'this' object. + */ + public List 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.