moveByPath method

Future<void> moveByPath(
  1. String sourcePath,
  2. String destPath
)

Move a file or folder by path.

Example: client.moveByPath('/Documents/report.pdf', '/Archive/');

Implementation

Future<void> moveByPath(String sourcePath, String destPath) async {
  final src = await resolvePath(sourcePath);
  final dest = await drive.resolveOrCreateFolder(destPath);
  await moveItem(src['uuid'], dest['uuid'], src['type']);
}