uploadDirectory(file, new FTPFile(dstDir.getPath(), file
uploadDirectory(file, new FTPFile(dstDir.toString(), file
    public void uploadDirectory(FTPFile srcDir, FTPFile dstDir)            throws IOException, FtpWorkflowException, FtpIOException {        if (!srcDir.isDirectory())            throw new FtpFileNotFoundException("Uploading: " + srcDir.getName()                    + " is not possible, it's not a directory!");        makeDirectory(dstDir.toString());        File[] files = srcDir.getFile().listFiles();        List ftpFiles = new ArrayList();        for (int i = 0; i < files.length; i++)        {            ftpFiles.add(new FTPFile(files[i]));        }        Collections.sort(ftpFiles);        for (Iterator it = ftpFiles.iterator(); it.hasNext(); ) {            FTPFile file = (FTPFile)it.next();            if (!file.isDirectory()) {                uploadFile(file, new FTPFile(dstDir.toString(), file.getName()));            } else {                uploadDirectory(file, new FTPFile(dstDir.getPath(), file                        .getName(), true));            }        }    }