WebDavClient class
WebDavClient class
Constructors
- WebDavClient(NextcloudClient rootClient)
Properties
- csrfClient → WebDavCSRFClient
-
When sending a request with cookies a CSRF token is also needed. In theory this should not be required as
long as we send the OCS-APIRequest header, but the server has a bug that only triggers when you also send the
cookies.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rootClient → NextcloudClient
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copy(
PathUri sourcePath, PathUri destinationPath, {bool overwrite = false}) → Future< StreamedResponse> -
Copies the resource from
sourcePath
todestinationPath
. -
copy_Request(
PathUri sourcePath, PathUri destinationPath, {bool overwrite = false}) → Request -
Request to copy the resource from
sourcePath
todestinationPath
. -
delete(
PathUri path) → Future< StreamedResponse> -
Deletes the resource at
path
. -
delete_Request(
PathUri path) → Request -
Request to delete the resource at
path
. -
get(
PathUri path) → Future< Uint8List> -
Gets the content of the file at
path
. -
get_Request(
PathUri path) → Request -
Request to get the content of the file at
path
. -
getFile(
PathUri path, File file, {void onProgress(double progress)?}) → Future< void> -
Gets the content of the file at
path
. -
getStream(
PathUri path, {void onProgress(double progress)?}) → Stream< List< int> > -
Gets the content of the file at
path
. -
mkcol(
PathUri path) → Future< StreamedResponse> -
Creates a collection at
path
. -
mkcol_Request(
PathUri path) → Request -
Request to create a collection at
path
. -
move(
PathUri sourcePath, PathUri destinationPath, {bool overwrite = false}) → Future< StreamedResponse> -
Moves the resource from
sourcePath
todestinationPath
. -
move_Request(
PathUri sourcePath, PathUri destinationPath, {bool overwrite = false}) → Request -
Request to move the resource from
sourcePath
todestinationPath
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
options(
) → Future< WebDavOptions> - Gets the WebDAV capabilities of the server.
-
options_Request(
) → Request - Request to get the WebDAV capabilities of the server.
-
propfind(
PathUri path, {WebDavPropWithoutValues? prop, WebDavDepth? depth}) → Future< WebDavMultistatus> -
Retrieves the props for the resource at
path
. -
propfind_Request(
PathUri path, {WebDavPropWithoutValues? prop, WebDavDepth? depth}) → Request -
Request to retrieve the props for the resource at
path
. -
proppatch(
PathUri path, {WebDavProp? set, WebDavPropWithoutValues? remove}) → Future< bool> -
Updates the props of the resource at
path
. -
proppatch_Request(
PathUri path, {WebDavProp? set, WebDavPropWithoutValues? remove}) → Request -
Request to update the props of the resource at
path
. -
put(
Uint8List localData, PathUri path, {DateTime? lastModified, DateTime? created}) → Future< StreamedResponse> -
Puts a new file at
path
withlocalData
as content. -
put_Request(
Uint8List localData, PathUri path, {DateTime? lastModified, DateTime? created}) → Request -
Request to put a new file at
path
withlocalData
as content. -
putFile(
File file, FileStat fileStat, PathUri path, {DateTime? lastModified, DateTime? created, void onProgress(double progress)?}) → Future< StreamedResponse> -
Puts a new file at
path
withfile
as content. -
putFile_Request(
File file, FileStat fileStat, PathUri path, {DateTime? lastModified, DateTime? created, void onProgress(double progress)?}) → StreamedRequest -
Request to put a new file at
path
withfile
as content. -
putStream(
Stream< List< localData, PathUri path, {required int contentLength, DateTime? lastModified, DateTime? created, void onProgress(double progress)?}) → Future<int> >StreamedResponse> -
Puts a new file at
path
withlocalData
as content. -
putStream_Request(
Stream< List< localData, PathUri path, {required int contentLength, DateTime? lastModified, DateTime? created, void onProgress(double progress)?}) → StreamedRequestint> > -
Request to put a new file at
path
withlocalData
as content. -
report(
PathUri path, WebDavOcFilterRules filterRules, {WebDavPropWithoutValues? prop}) → Future< WebDavMultistatus> -
Runs the filter-files report with the
filterRules
on the resource atpath
. -
report_Request(
PathUri path, WebDavOcFilterRules filterRules, {WebDavPropWithoutValues? prop}) → Request -
Request to run the filter-files report with the
filterRules
on the resource atpath
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited