Listing a current directory (when the path argument is empty) would send the command "LIST " with trailing whitespace to FTP resulting in 500 errors with Solaris FTP server. This patch fixes that.