There is no easy way to get a file list from a remote server, you must parse it yourself, or make a local dirlist on the remote server (since it seems you have access) then just have your local server ...