📜  从路径 android 中删除文件 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:13.639000             🧑  作者: Mango

代码示例1
File fdelete = new File(uri.getPath());
if (fdelete.exists()) {
    if (fdelete.delete()) {
        System.out.println("file Deleted :" + uri.getPath());
    } else {
        System.out.println("file not Deleted :" + uri.getPath());
    }
}