我使用perl Net:: FTP ::Recursive模块将文件夹从本地上传到FTP。我已经编写了下面的示例代码。在这段代码中,我需要知道上传过程的状态,比如它是否已经上传。
use strict;
use Net::FTP:recursive;
my $ftp_con= Net::FTP::Recursive->new('host.com',Debug=>0);
$ftp_con->login('username','password');
$ftp_con->rput('d:\my_test',&
我认为我正在朝着正确的方向前进,但希望任何人都能提供意见。我正在开发一个控制台应用程序,它应该在多个文件夹中查找文件,然后将找到的任何文件上传到FTP服务器上的每个相应文件夹(镜像以匹配我的本地目录)。我刚开始使用Rebex和FTP上传。到目前为止,我的代码如下所示:
//Connect to SFTP server
Sftp ftp = new Sftp();
ftp.Connect(ftpServerURL);
ftp.Login(ftpUserName, ftpPassword);
嗨,所有的java极客可以帮助我吗?我需要上传一个文件夹与subs文件夹到我的ftp。我找到了一些示例代码,但仅适用于singel文件。我不知道如何改变它来上传一个文件夹。我使用了谷歌,但没有找到。
String server = "192.168.1.2";
String username = "test";
String password = "test";
String local = "mnt/sdcard/shopinglist/"; #This path i need to up
我使用fluentftp库将文件夹上传到ftp。如何跳过目录的子文件夹。
// upload only PDF files
var rules = new List<FtpRule>{
new FtpFileExtensionRule(true, new List<string>{ "pdf" }),
new FtpFolderNameRule(false, FtpFolderNameRule.CommonBlacklistedFolders)