重命名文件 @param filePath 文件路径 @param newName 新名称 @return true: 重命名成功 false: 重命名失败
(String filePath, String newName)
| 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 | * 重命名文件 |
nothing calls this directly
no test coverage detected