Giter VIP home page Giter VIP logo

cos_rm_recursive's Introduction

运行环境:python 2.7

1.修改 conf/config.json 中的 appid和 secret_id和 secret_key
    "appid":10000202,
    "secret_id":"*******",
    "secret_key":"******",
    "log_level":1,                             #记录log级别 0:debug 1:info 2:warning 3:error
    "log_file_name":"del_file.log",            #记录log的文件名
    "dir_thread_num":2,                        #递归搜索文件夹线程数
    "file_thread_num":5,                       #删除文件线程数
    "delete_folder_fail_exist":1               #删除文件夹失败是否直接退出,1:退出 0:继续执行其他文件删除
    说明:线程数一般不用调整,如果调整过大容易导致对cos系统的操作频控

2.修改 conf/bucketlist.txt,填写待删除的bucket和文件夹,文件夹必须以/结尾
    格式如下
    bucketName, /folder1/
    bucketName, /folder2/
    bucketName, /folder3/
    说明:
    (1)可以直接填写跟目录/,即bucketName, / 
    (2)注意文件夹之间不嵌套,比如folder1,folder2,folder3不能有嵌套关系

3.执行python rm_recursive.py

cos_rm_recursive's People

Contributors

jonnxu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.