wget -rがすべてのFTPサブディレクトリを取得できないのはなぜですか?

wget -rがすべてのFTPサブディレクトリを取得できないのはなぜですか?

コマンドを実行するとき:

 wget -r ftp://user:[email protected]/

サブサブディレクトリがありません。再帰FTPに制限はありますか?

ベストアンサー1

どの位深く達したか。 5つ以上必要な場合は、オプションを提供する必要があります-l

男wget

-r
--recursive
    Turn on recursive retrieving.    The default maximum depth is 5.

-l depth
--level=depth
    Specify recursion maximum depth level depth.
-m
--mirror 
Turn on options suitable for mirroring. 
This option turns on recursion and time-stamping, 
sets infinite recursion depth and keeps FTP directory listings. 
It is currently equivalent to ‘-r -N -l inf --no-remove-listing’.

おすすめ記事