Logo

Programming-Idioms

  • Java
  • Dart

Idiom #211 Create folder

Create the folder at path on the filesystem

import 'dart:io';
Directory(path).create();
import java.io.File;
boolean ok = new File(path).mkdirs();

May throw a SecurityException
with Ada.Directories;
Ada.Directories.Create_Directory (New_Directory => Path);

New implementation...
< >
programming-idioms.org