trashByPath method

Future<void> trashByPath(
  1. String remotePath
)

Delete a file or folder by path (move to trash).

Example: client.trashByPath('/Documents/old-report.pdf');

Implementation

Future<void> trashByPath(String remotePath) async {
  final resolved = await resolvePath(remotePath);
  await trashItem(resolved['uuid'], resolved['type']);
}