createDirectory method

Future<void> createDirectory(
  1. String path
)

Creates a new directory at the given path in the repository.

Implementation

Future<void> createDirectory(
  String path,
) async {
  final request = RequestRepositoryCreateDirectory(
    repo: handle,
    path: path,
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponseNone(): return;
    default: throw UnexpectedResponse();
  }
}