Yes, the FTP client application that you see on
integralftp.com is built on the Integral FTP client library which is a general-purpose API. You have full access to all of the Javascript source-code so you can modify it in any way you like.
In order to have a particular action take place after the user has connected you would modify the
onConnect callback.
In the included FTP client app the callback is set to ftp_onConnect, which you'll find in ftpevents.js. The code for this is essentially:
function ftp_onConnect(status)
{
if (status.success)
ftp.directoryList();
}
So it simply requests a listing of whatever the current directory is.
If you would like to change into another directory first then you should call
changeDirectory immediately after connecting as follows:
function ftp_onConnect(status)
{
if (status.success)
ftp.changeDirectory({user's directory});
}
Does that make sense?
- Hans (EnterpriseDT)