W3cubDocs

/Dart 2

create method

Future<Directory> create ({bool recursive: false })

Creates the directory with this name.

If recursive is false, only the last directory in the path is created. If recursive is true, all non-existing path components are created. If the directory already exists nothing is done.

Returns a Future<Directory> that completes with this directory once it has been created. If the directory cannot be created the future completes with an exception.

Implementation

Future<Directory> create({bool recursive: false});

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/Directory/create.html