LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   is there the x directory in an ftp server? (https://www.linuxquestions.org/questions/programming-9/is-there-the-x-directory-in-an-ftp-server-346287/)

kpachopoulos 07-24-2005 02:18 PM

is there the x directory in an ftp server?
 
I am writing a csh script, which downloads something from an ftp server. The user provides parameters in order for the path in the ftp server to be created. The problem is that i have to check first if the path exists.
Is there a way?

for example "doYouExistCommand ftp://ftp.lalala.com/la/ba/sa" ?
Thanks

david_ross 07-24-2005 03:44 PM

Just try changing to that directory, if it is successful then it exists.

You could also try listing it but that would not guarantee that you had permission to access it


All times are GMT -5. The time now is 05:59 AM.