ftp文件从一个目录传输到另一个目录 [英] Ftp file transfer from one directory to another

查看:581
本文介绍了ftp文件从一个目录传输到另一个目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我正在尝试使用FTP将文件从一个目录复制到另一目录.虽然我尝试使用put方法复制文件,但它会复制文件,但其内容大小为零(0).在其他情况下,如果我是从本地计算机复制的,则可以正常运行.我不知道如何使用FTP复制文件而不会丢失任何数据.我正在使用以下类来获取文件

sun.net.ftp.FtpClient

Dear All,

I am trying to copy files from one directory to another directory using FTP. while i try to copy files using put method, it copies the file but its content size was zero(0). In other case if i am copied from the local machine its works perfectly. I dont know how to copy file using FTP without any data losing. I am using the following class to fetch the files

sun.net.ftp.FtpClient

is there any suggestion regarding this.?

推荐答案

看看此处 [ ^ ]或签出其中一个其他教程.

您是否检查了内容是否已传输?还是仅仅是您在另一台计算机上创建的文件夹/文件?
take a look here[^] or check out one of the other tutorials.

Did you check that the content was transmitted? or is it just a folder/a file you create on the other machine?


这篇关于ftp文件从一个目录传输到另一个目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆