Ad and purchases enabled (still need actual testing)

This commit is contained in:
Courtney Arnold 2026-08-16 18:27:56 -05:00
parent 2fcc6dcab7
commit faf319322a
35 changed files with 1676 additions and 34 deletions

View file

@ -244,6 +244,17 @@ class DropboxSession implements CloudStorageSession {
return childPath;
}
@override
Future<String> moveFolder({required String folderId, required String newParentId}) async {
final name = folderId.substring(folderId.lastIndexOf('/') + 1);
final toPath = _childPath(newParentId, name);
if (toPath == folderId) return folderId;
final json = await _post('/2/files/move_v2', {'from_path': folderId, 'to_path': toPath});
final metadata = json['metadata'] as Map<String, dynamic>?;
return metadata?['path_display'] as String? ?? toPath;
}
@override
Future<CloudFileInfo?> findFile({required String folderId, required String name}) async {
final filePath = _childPath(folderId, name);