wgetを使用すると「書き込めません」エラー

wgetを使用すると「書き込めません」エラー

SharePointフォルダのコンテンツをダウンロードするバックアップスクリプトを作成したいと思います。次のコマンドを使用してwget(以前にログインしてcookie.txtをエクスポートしたとき)を使用して作業コマンドを受け取りました。

wget --cookies=on --load-cookies cookies-portal-holding-lknoe-at.txt --keep-session-cookies --no-check-certificate -N -r -l 10 -np -R "index.html*" https://sharepoint.url/path/Freigegebene%20Dokumente/Foldername

オプションは次のとおりです。

-N to turn on timestamping
-R to exclude index.html 
-r -l 10 to download 10 recursive levels
-np to start with the child of the specified path

ターゲットフォルダがない場合、コマンドは期待どおりに動作します。存在する場合、次のエラーが表示されます。

sharepoint.url/path/Freigegebene%20Dokumente/Foldername: Is a directory
Cannot write to sharepoint.url/path/Freigegebene%20Dokumente/Foldername (Success).

ディスク容量が足りません。どんなアイデアがありますか?

ベストアンサー1

ディレクトリの末尾に「/」はありません。努力する:

wget --cookies=on --load-cookies cookies-portal-holding-lknoe-at.txt --keep-session-cookies --no-check-certificate -N -r -l 10 -np -R "index.html*" https://sharepoint.url/path/Freigegebene%20Dokumente/Foldername/

おすすめ記事