java對文件操做,刪除文件,強制刪除文件

/** * 刪除文件夾(強制刪除) * * @param path */ public static void deleteAllFilesOfDir( File path) { if (null != path) { if (!path.exists()) return ; if (path.isFile()) { boolean result = path.delete(); int tryC
相關文章
相關標籤/搜索