天天看點

檔案管理

 檔案、檔案夾删除

 boolean java.io.file.delete()

若是檔案,删除。若是檔案夾,隻有它為非空時才删除。

deletes the file or directory denoted by this abstract pathname. if this pathname denotes a directory, then the directory must be empty in order to be deleted.