Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.4k views
in Java FTP by (820 points)
I am using the latest edtftpj-pro. I am preforming the mput method:

mput(localFile, remoteFile, "*.*" true);

The folders already exist on the remote server and I wish to replace them with modified ones from my local machine. However, it will not do the upload. I can do the reverse when downloading, i.e. overwriting local files with ones from the remote server.

Does edtftpjpro allow overwriting of remote files?

7 Answers

0 votes
by (162k points)
This is probably a permissioning problem on the FTP server.

Can you overwrite individual files using put()?

A hacky work around is to delete the files on the server first.
0 votes
by (820 points)
I can overwrite with put() fine. I've checked the permissions on the files and folders and they are all set to 777.

I'd already thought of deleting the remote files, then uploading, but i'd prefer not to go down this route.
0 votes
by (820 points)
To add to my earlier post, if it helps, I get the following exception thrown when trying to overwrite with mput().

com.enterprisedt.net.ftp.FTPException: Create directory operation failed.


To reiterate the permissions are set to read/write/execute (chmod'd to 777). I have also tried the mput() method on a different server, but get the same issue.

Any guidance is much appreciated.
0 votes
by (162k points)
Could you email support at enterprisedt dot com with a logfile and any other details about the error?
0 votes
by (820 points)
ok, will do. Thanks
0 votes
by (160 points)
If you find any solutions for overwriting remote files/folders, could you please forward it to me

Thanks
Raja Vedaiyan
0 votes
by (162k points)
In 1.2.8 the particular problem above is solved - no directory is created if it already exists.

If you find any solutions for overwriting remote files/folders, could you please forward it to me

Thanks
Raja Vedaiyan

Categories

...