(Path path, String newName)
| 101 | //region 基本操作 文件 |
| 102 | |
| 103 | public static Path reName(Path path, String newName) throws IOException { |
| 104 | Path target = path.getParent().resolve(newName); |
| 105 | return Files.move(path, target); |
| 106 | } |
| 107 | |
| 108 | public static Path createDir(Path path, boolean replace) throws IOException { |
| 109 | if (replace) { |