Automatically scan directories

I have developed a Webpublishing script that works fine.
Is there a function that I can call from within my script to scan the directorys without authenicating ?

thanks

NEW USUARIO

HELLO I CANNOT ENTER MI
FTP SERVANT
LOGIN
AND PASSWORD
HE/SHE CAN PLEASE EXPLAIN

bash script

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.