getSharedFileById method

  1. @override
Future<String> getSharedFileById({
  1. required String fileId,
  2. required String localPath,
})
override

Implementation

@override
Future<String> getSharedFileById(
    {required String fileId, required String localPath}) async {
  _checkAuth();

  var folderInfo = await _findOrJoinSharedFolder(fileId);
  final remoteFilePath = "${folderInfo['path_lower']}/sync_file.json";

  debugPrint("Downloading from resolved remote path: $remoteFilePath");
  return downloadFile(remotePath: remoteFilePath, localPath: localPath);
}