きうちです On 00/02/07 17:48:13 jkuro / gb3.so-net.ne.jp wrote: > 黒田です。 > > 本当はこっちでした。これでも、結果は同じだと思いますが。 いえ、変化がありました。UPLOAD途中で止まることは無くなりましたが、 今度は、サブディレクトリ以下にあるファイルを親ディレクトリで削除しようと して、エラーで止まります。 @@ -163,7 +164,7 @@ begin @ftp.mkdir(dirname) rescue - if first_time && $! =~ /File exists.$/ + if first_time && $! =~ /^521 / @ftp.delete(dirname) first_time = FALSE retry この部分は当てても当てなくても変化ありませんでした。 > @homepageの環境での日付フォーマットがl.143にもl.150にも、ひっかかって > ないですね。l.141あたりに > puts line > と入れるとなんて出ますか? homepage: -rw-r--r-- 1 xxxxx 999 2337 Feb 4 22:17 body.html -rw-r--r-- 1 xxxxx 999 1162 Feb 4 22:18 contents.html -rw-r--r-- 1 xxxxx 999 668 Feb 4 22:18 f_index.html -rw-r--r-- 1 xxxxx 999 1158 Feb 4 22:18 header.html -rw-r--r-- 1 xxxxx 999 6709 Feb 8 00:46 index.html -rw-r--r-- 1 xxxxx 999 40237 Feb 8 00:23 old.html -rw-r--r-- 1 xxxxx 999 673 Feb 8 00:46 style.css -rw-r--r-- 1 xxxxx 999 484 Feb 4 22:18 sub.html -rw-r--r-- 1 xxxxx 999 535 Feb 4 22:18 thanks.html -rw-r--r-- 1 xxxxx 999 1078 Feb 4 22:18 webmail.html -rw-r--r-- 1 xxxxx 999 7300 Feb 4 22:17 body.html -rw-r--r-- 1 xxxxx 999 956 Feb 4 22:17 contents.html -rw-r--r-- 1 xxxxx 999 457 Feb 4 22:17 index.html -rw-r--r-- 1 xxxxx 999 487 Feb 4 22:17 nanase.html -rw-r--r-- 1 xxxxx 999 5391 Feb 4 22:17 nanaseml-e.html -rw-r--r-- 1 xxxxx 999 4758 Feb 4 22:17 nanaseml.html -rw-r--r-- 1 xxxxx 999 914 Feb 4 22:18 NNPlinklogo1.gif -rw-r--r-- 1 xxxxx 999 4706 Feb 4 22:18 acecom.gif -rw-r--r-- 1 xxxxx 999 5315 Feb 4 22:18 inter.gif -rw-r--r-- 1 xxxxx 999 1998 Feb 4 22:18 lovemac.gif -rw-r--r-- 1 xxxxx 999 1817 Feb 4 22:18 nanaseworld.gif homepage/AN: -rw-r--r-- 1 xxxxx 999 7300 Feb 4 22:17 body.html -rw-r--r-- 1 xxxxx 999 956 Feb 4 22:17 contents.html -rw-r--r-- 1 xxxxx 999 457 Feb 4 22:17 index.html -rw-r--r-- 1 xxxxx 999 487 Feb 4 22:17 nanase.html -rw-r--r-- 1 xxxxx 999 5391 Feb 4 22:17 nanaseml-e.html -rw-r--r-- 1 xxxxx 999 4758 Feb 4 22:17 nanaseml.html homepage/AN/ML: -rw-r--r-- 1 xxxxx 999 465 Feb 4 22:17 index.html homepage/img: -rw-r--r-- 1 xxxxx 999 914 Feb 4 22:18 NNPlinklogo1.gif -rw-r--r-- 1 xxxxx 999 4706 Feb 4 22:18 acecom.gif -rw-r--r-- 1 xxxxx 999 5315 Feb 4 22:18 inter.gif -rw-r--r-- 1 xxxxx 999 1998 Feb 4 22:18 lovemac.gif -rw-r--r-- 1 xxxxx 999 1817 Feb 4 22:18 nanaseworld.gif put ./index.html: .... delete NNPlinklogo1.gif ftpmirror/ftpmirror: 550 ./NNPlinklogo1.gif: No such file or directory. となり、homepage:以下にサブディレクトリにあるはずのファイル名が取得され それを削除しようとしてしまいエラーで止まるようです。 そこで @ftp.list("-lL "+directory) do |line| 直下に puts line を入れてみたところ homepage: -rw-r--r-- 1 xxxxx 999 2337 Feb 4 22:17 body.html -rw-r--r-- 1 xxxxx 999 1162 Feb 4 22:18 contents.html -rw-r--r-- 1 xxxxx 999 668 Feb 4 22:18 f_index.html -rw-r--r-- 1 xxxxx 999 1158 Feb 4 22:18 header.html -rw-r--r-- 1 xxxxx 999 4504 Feb 7 19:27 index.html -rw-r--r-- 1 xxxxx 999 39286 Feb 4 22:17 old.html -rw-r--r-- 1 xxxxx 999 626 Feb 4 22:17 style.css -rw-r--r-- 1 xxxxx 999 484 Feb 4 22:18 sub.html -rw-r--r-- 1 xxxxx 999 535 Feb 4 22:18 thanks.html -rw-r--r-- 1 xxxxx 999 1078 Feb 4 22:18 webmail.html という出力でした。だいぶ見えてきたのですが、今日はこのぐらいにさせてくだ さい(^^ゞ では、 *----*----*----*----*----*----*----*----*----*----* *** 木内 宏和 kiuchi / nsknet.or.jp