From: Ronald Fischer Date: 2007-06-12T18:11:30+09:00 Subject: Solved - it was my fault (was: Net::FTP : How to check whether chdir succeeded?) > > Does anyone know a reliable way to detect, whether > Net::FTP#chdir was > > successful? Even if the directory does not exist, no exception is > > thrown. > > That's odd. I tried running this snippet, connecting from a Windows XP > Pro box to a RHEL box: > > ftp = FTP.new(host, user, passwd) > ftp.chdir('/totally/bogus') > ftp.close > > It raised an exception for me: For me too. Sorry, my fault. I should have first stripped down my example to the most simple case. I had, without noticing, caught that exception before passing control on to the caller. Ronald