moveEntry method

Future<void> moveEntry(
  1. String src,
  2. String dst
)

Moves an entry (file or directory) from src to dst.

Implementation

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