makeDirectory method

  1. @override
Future<bool> makeDirectory(
  1. String path
)

Create a directory.

Implementation

@override
Future<bool> makeDirectory(String path) {
  return _write(() async {
    if (resolve(path).isEmpty) return true;
    final key = _directoryKey(path);
    final object = await bucket.put(key, Uint8List(0));
    return object != null;
  });
}