Can "rsync" command be used to list all the files?
Yes..!!
Rsync can be used to list directories in the server as:
rsync --list-only username@servername:/directoryname
This lists the directory with detail information.
To list all the files for a particular directory :
Simply insert a slash at the end of the command and it will show the folder contents, thus:
rsync --list-only username@servername:/directoryname/