import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

class FilesCreateDirectories {
    public static void main(String ... args) throws IOException {
        Path temp = Path.of(".temp/temp.abc/temp.def");
        Files.deleteIfExists(temp);
        Files.deleteIfExists(temp.getParent());
        Path a = Files.createDirectories(temp);
        Path b = Files.createDirectories(temp);
        Path c = Files.createDirectories(temp);
        System.out.format("Files.createDirectories(%s) => %s%n", temp, a);
        System.out.format("Files.createDirectories(%s) => %s%n", temp, b);
        System.out.format("Files.createDirectories(%s) => %s%n", temp, c);
    }
} 