📜  从相对java代码示例中获取绝对路径

📅  最后修改于: 2022-03-11 14:52:47.364000             🧑  作者: Mango

代码示例2
String absolutePath = FileSystems.getDefault()
  .getPath(mayBeRelativePath)
  .normalize()
  .toAbsolutePath()
  .toString();