How to delete an empty directory (or the directory with all contents recursively) in gradle?

前端 未结 6 1465
后悔当初
后悔当初 2020-12-15 18:10

I can\'t figure out how to delete all contents of a directory.

For cleaning out a directory, I want to remove all files and directories inside it: I want to wipe ev

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 18:59

    To delete the src directory and all its contents:

    task deleteGraphicsAssets(type: Delete) {
        delete "src"
    }
    

提交回复
热议问题