createDirectory method

  1. @override
Future<void> createDirectory(
  1. String path
)
override

Creates a directory at the specified path.

Implementation

@override
Future<void> createDirectory(String path) async {
  final fullPath = resolvePath(path);
  final dir = Directory(fullPath);
  if (!await dir.exists()) {
    await dir.create(recursive: true);
  } else {
    throw FileSystemException("Directory Already found: $fullPath");
  }
}