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.