Ad and purchases enabled (still need actual testing)
This commit is contained in:
parent
2fcc6dcab7
commit
faf319322a
35 changed files with 1676 additions and 34 deletions
|
|
@ -282,6 +282,22 @@ class WebDavSession implements CloudStorageSession {
|
|||
return childUri.path;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<String> moveFolder({required String folderId, required String newParentId}) async {
|
||||
final name = _nameFromPath(folderId);
|
||||
final destination = _childUri(_uriFor(newParentId), name);
|
||||
|
||||
final response = await _send('MOVE', _uriFor(folderId), headers: {
|
||||
'Authorization': _provider._authHeader,
|
||||
'Destination': destination.toString(),
|
||||
'Overwrite': 'F',
|
||||
});
|
||||
if (response.statusCode != 201 && response.statusCode != 204) {
|
||||
throw StateError('WebDAV MOVE failed: ${response.statusCode} ${response.body}');
|
||||
}
|
||||
return destination.path;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<CloudFileInfo?> findFile({required String folderId, required String name}) async {
|
||||
final fileUri = _childUri(_uriFor(folderId), name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue