MCPcopy Create free account
hub / github.com/SeanDragon/protools / deleteFile

Method deleteFile

common/src/main/java/pro/tools/file/ToolFile.java:517–519  ·  view source on GitHub ↗

删除文件 @param srcFilePath 文件路径 @return true: 删除成功 false: 删除失败

(String srcFilePath)

Source from the content-addressed store, hash-verified

515 * @return {@code true}: 删除成功<br>{@code false}: 删除失败
516 */
517 public static boolean deleteFile(String srcFilePath) {
518 return deleteFile(getFileByPath(srcFilePath));
519 }
520
521 /**
522 * 删除文件

Callers 2

copyOrMoveFileMethod · 0.95
deleteFilesInDirMethod · 0.95

Calls 2

getFileByPathMethod · 0.95
isFileMethod · 0.45

Tested by

no test coverage detected