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

Method reName

common/src/main/java/pro/tools/path/ToolPath.java:103–106  ·  view source on GitHub ↗
(Path path, String newName)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

moveMethod · 0.80

Tested by

no test coverage detected