createDirectory method
Creates a folder named newFolder inside the path specified by path.
It creates it only if it does not already exist.
Implementation
Future<void> createDirectory(final String path, final String newFolder) async {
final dir = Directory(path_lib.join(path, newFolder));
if (!(await dir.exists())) {
await dir.create();
}
}