getFileMetadata method
Gets the metadata of a file.
Implementation
@override
Future<CloudFile> getFileMetadata(String path) async {
_checkAuth();
final response = await _dio.post(
'https://api.dropboxapi.com/2/files/get_metadata',
data: jsonEncode({'path': _normalizePath(path)}),
options: Options(contentType: 'application/json'),
);
return _mapToCloudFile(response.data);
}