Thank you very much for the reply...
Currently i'am using the dir("dir_path",boolean ) to get the files and then to see if the filename matches the given pattern i need to transfer ... the steps i'm following in my program is as follows ..
1) i am listing all the files which i need to transfer to remove ftp server,
2) then moving the files to local host where my program is running.
3) then i am transferring/putting the files to the remote ftp server ..
In each of the above steps i want to check if the file/directory exists ..before getting or putting the file ..
while putting the file if the directory doesn't exists i want to create the directory .. all the details .. like pattern of filename, hostname, directory, user details etc., i'm taking them dynamically ..
so i was looking for a simple method which would return a boolean value .. currently i'm using quote() method and checking for the return string ...
require your suggestions to make the program efficient and less complex .. any tips will be of great help ..
thanks and regards,
Umesh