其他分享
首页 > 其他分享> > hutool清空文件夹

hutool清空文件夹

作者:互联网

<dependency>
    <groupId>cn.hutool</groupId>
    <artifactId>hutool-core</artifactId>
    <version>5.6.5</version>
</dependency>
public class test {
    public static void main(String[] args) {
        String path="D:\\Yulgang\\datas\\cap";
        FileUtil.clean(path);
    }
}

标签:core,String,cap,hutool,文件夹,清空,path,public
来源: https://www.cnblogs.com/pakhm/p/15935774.html