Im trying to make a script that checks if a directory exists on an ftp server
But if the directory doesnt exist i dont get any error exit code, i just get exitcode 0 all the time Is there some way i can trap the cd: Access failed: 550 /customers/john/webdata: No such file or directory. error lftp spits out and use it? I can get the ls information if the directory exists but not the error message, And if the directory does not exist i get the ls output from the parent directory so i cant check if its nothing either since every customer has its own structure and things like that.
