Author: sebb
Date: Sat Mar 19 14:46:57 2011
New Revision: 1083184

URL: http://svn.apache.org/viewvc?rev=1083184&view=rev
Log:
Add mlsd() implementation

Modified:
    
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java

Modified: 
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
URL: 
http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java?rev=1083184&r1=1083183&r2=1083184&view=diff
==============================================================================
--- 
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
 (original)
+++ 
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
 Sat Mar 19 14:46:57 2011
@@ -2136,6 +2136,18 @@ implements Configurable
     }
 
     /**
+     * Generate a directory listing for the current directory using the MSLD 
command.
+     *
+     * @return the array of file entries
+     * @throws IOException
+     * @since 3.0
+     */
+    public FTPFile[] mlistDir() throws IOException
+    {
+        return mlistDir(null);
+    }
+
+    /**
      * Generate a directory listing using the MSLD command.
      *
      * @param pathname the directory name, may be {@code null}
@@ -2580,9 +2592,7 @@ implements Configurable
     public FTPFile[] listFiles(String pathname)
     throws IOException
     {
-        String key = null;
-        FTPListParseEngine engine =
-            initiateListParsing(key, pathname);
+        FTPListParseEngine engine = initiateListParsing((String) null, 
pathname);
         return engine.getFiles();
 
     }


Reply via email to