Files.move
Path sourcePath ... Path basePath ... Path targetPath ... Files.move(sourcePath, targetPath.resolve(basePath.relativize(sourcePath));