mkdirp method

  1. @override
Future<SafDocumentFile> mkdirp(
  1. String uri,
  2. List<String> names
)
override

Implementation

@override
Future<SafDocumentFile> mkdirp(String uri, List<String> names) async {
  final map = await methodChannel.invokeMapMethod<String, dynamic>(
    'mkdirp',
    {'uri': uri, 'names': names},
  );
  if (map == null) {
    throw Exception('Failed to create directory: $uri');
  }
  return SafDocumentFile.fromMap(map);
}