Please give me some info about modify jftp code
The use case is when a user logged in, the remote directory should direct to his own home directory rather than the root directory. For example, when Tom logged in, the target directory should be /class12/boy/Tom, and Marry logged in, the directory should be /class12/girl/Marry, rather than /class12. I do not know which part do I need 开发者_运维问答to modify, I downloaded the source code from http://j-ftp.sourceforge.net/. Appreciate for your help.
jftp looks like an ftp client:
In short: JFtp is a graphical Java network and file transfer client.
However, the behavior you desire can only be handled on the server side. EG, for SFTP (over SSH), you need to look into some kind of chroot or jail. For FTP, most daemons usually allow you to configure the paths your user can access, so you would edit the ftpd config file appropriately and restart the ftpd process.
If you do not have access to the server, then you will need to contact your server administrator / provider to make the necessary arrangements.
精彩评论