update method

  1. @override
Future<Link> update(
  1. String target
)
override

Updates an existing link.

Deletes the existing link at path and creates a new link to target, using create.

Returns a future which completes with this Link if successful, and with a PathNotFoundException if there is no existing link at path, or with any FileSystemException that delete or create can throw.

Implementation

@override
Future<Link> update(String target) async =>
    wrap(await delegate.update(target));