FTPClient文件夹不存在时新建

            // 文件夹不存在时新建
            if (!fTPClient.changeWorkingDirectory(remotePath)) {
                fTPClient.makeDirectory(remotePath);
                fTPClient.changeWorkingDirectory(remotePath);
            }

你可能感兴趣的:(Java高级)