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

Method rename

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

重命名文件 @param filePath 文件路径 @param newName 新名称 @return true: 重命名成功 false: 重命名失败

(String filePath, String newName)

Source from the content-addressed store, hash-verified

71 * @return {@code true}: 重命名成功<br>{@code false}: 重命名失败
72 */
73 public static boolean rename(String filePath, String newName) {
74 return rename(getFileByPath(filePath), newName);
75 }
76
77 /**
78 * 重命名文件

Callers

nothing calls this directly

Calls 3

getFileByPathMethod · 0.95
isSpaceMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected