我有一个C#类:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Handler.FTPClient
{
public class FTP
{
private static string _message = "This is a message";
public static String message
{
我被困在TLS/SSL (FTPS)服务器上连接FTP。我正在使用的SimpleFTP库,通过能够连接的FTP服务器,没有SSL,但不能连接FTPS。
它在第2行(ftp.connect)给了我这个错误,
当连接到FTP服务器时,SimpleFTP收到了未知的响应:
220
正在使用下面的代码
SimpleFTP ftp = new SimpleFTP();
// Connect to an FTP server on port 21.
ftp.connect("xxx.xxx.xxx.xxx", 21, "username", "pwd
我是javascript的新手,正在尝试编写一个脚本,它可以将本地驱动器中的photoshop文件复制到FTP服务器。该文件在photoshop中打开,脚本在其中运行。
我关注了165页上的。
var file_path = app.activeDocument.fullName
var file = new file ("/d/project/test_file.psd");
var ftp = new FtpConnection("ftp://192.168.1.150/DATA/") ;
ftp.login("username",
我得到了这个ftp上传方法:
try {
SimpleFTP ftp = new SimpleFTP();
// Connect to an FTP server on port 21.
ftp.connect("ftp.atw.hu", 21, "username", "password");
// Set binary mode.
ftp.bin();
// Change to a new working directory on the FTP server.
ftp.cwd(&
我想把来自Memo1的数据直接放到我的FTP服务器上,我有代码:
procedure TForm5.SendClick(Sender: TObject);
var K: TStream;
begin
K := TStream.Create;
Memo1.Lines.SaveToStream(K);
FTP.Host := 'localhost';
FTP.Username := 'login';
FTP.Password := 'haslo';
FTP.Connect;
if F
我选择的文本编辑器可以通过python插件进行扩展。它要求我扩展类并重写它的方法。一般结构看起来类似于下面的片段。注意,函数签名是固定的。
ftp_client应该由两个类的实例共享。
ftp_client = None
class FtpFileCommand(sublime_plugin.TextCommand):
def run(self, args):
global ftp_client # does it reference the variable of the outer scope?
self.ftp_client = ftplib.FTP('fo
我有rails应用程序,它发送文件到FTP。我想要将整个文件夹移动到Ftp,但它给出了这个错误:
/home/Anup/code/DashGo-2.2.0/vendor/rails/railties/lib/commands/runner.rb:47: /usr/lib/ruby/1.8/net/ftp.rb:471:in `gets': Is a directory - /home/Anup/code/DashGo-2.2.0/private/temp_file (Errno::EISDIR)
from /usr/lib/ruby/1.8/net/ftp.rb:471:in
我有一个具有Dipose()方法的FTP类
public class Ftp : IFtp
{
//other methods, properties and fields
public void Dispose()
{
if (_ftp.IsConnected)
_ftp.Close();
_ftp.Dispose();
_ftp = null;
}
}
这是我用来访问Ftp类的接口
public inte
在TeamCity-Agent上构建后,我必须通过FTP复制文件。orndinary构建工作本身运行得很好。自定义脚本的触发也成功完成。通过ftp复制文件失败,错误如下:
[15:34:31]: copyFiles
[15:34:31]: [copyFiles] ftp
[15:34:31]: [ftp] Could not create type ftp due to java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClientConfig
我在网上搜索了一段时间,多次找到相同的答案:“您必须将commons-net
我试图在ant中通过ftp拉出文件,在打印“获取文件”后挂起,所以我在ant中启用了debug,我的输出是
[root@LODIVM11SE001 net]# ant -d -f ftp_t.xml
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: ftp_t.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: /root/jdk1.6.0_10/jre
Detected OS: Linux
Adding reference: ant