开发者

curl ftp delete mulitiple files sh script

I am trying to delete a folder with multiple files via ftp using curl (called within a sh script on ubuntu), and not having much success. I can delete an empty folder, and I can delete individual files if called directly. The thing is this is a backup folder and the names will change.

After researching it seems you can't delete multi files using the curl ftp command, and the only way is to list the files, then process the list and delete each one. But I cannot seem to find an example, can someone help me with this?

I'm using the following comamnd t开发者_StackOverflowo list the files:

curl -l ftp://ftpadd/path/ --user "user:pw"


called tnftp to delete the files

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜