Unable to get FTP server directory listing from android ftp4j client
<p>Running following code on emulator. Connecting to filezilla server on windows development host using ip address  10.0.2.2.</p>

<pre><code>FTPClient ftp = new FTPClient();
try
{
    ftp.connect("10.0.2.2", 21);
    ftp.login(username, password);
    String REMOTE_DEFAULT_INITIAL_DIRECTORY = ftp.currentDirectory();
    File mDirectory = new File(REMOTE_DEFAULT_INITIAL_DIRECTORY);
    File[] listing = mDirectory.listFiles();
}
catch (Exception e)
{
    e.printStackTrace();
}
</code></pre>

<p>Problem: The File[] contains listing of files on android client instead of server.</p>

<p>Thanks
Imdad  </p>
