createFolder function

Future<String> createFolder(
  1. String path
)

Create folder

Implementation

Future<String> createFolder(String path) async {
  final Directory directory = await Directory(path).create(recursive: true);

  return directory.path;
}