java.nio.file
Path path = Paths.get("my/file.txt");Path absolutePath = path.toAbsolutePath();Path directory = path.getParent();Path fileName = path.getFileName();boolean exists = Files.exists(path);Files.createDirectories(path);Files.createFile(path);Files.delete(path);Files.copy(sourcePath, targetPath);