Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.7k views
in Java FTP by (200 points)
Hi friends,

When I am connecting to remote ftp server the current working directory(of server) is by default set to C:/Inetpub/ftproot.
Now if I execute 'changeToParentDirectory()' , it should go to the root of the server which is C:/ . But the working directory is not moving up of C:/Inetpub/ftproot, however I am able to change to any directory under C:/Inetpub/ftproot.

What might be the issue??

I have another doubt.When I am transferring files from ftp server to local system(server directory having multiple files and these files are also coming from another system) will any file tranfer to local system if that file is partially transferred to the server directory at the instant we are trying to tranfer it to the local system?

I will be gratefull if any one can give any suggestion.

Thanks in Advance
Subhasish

1 Answer

0 votes
by (162k points)
That's why it is called ftproot - that is the root directory as far as the FTP server is concerned. You can't navigate any higher up the directory structure.

Re your second question - if the file isn't fully transferred onto the server, you won't get the entire file when you download.

The best approach is to transfer files to the FTP server as filename.tmp, and then rename to filename when the entire file is transferred. That way clients looking for 'filename' only find it when the entire file is already there.

Categories

...