nextcloud 1.0.5 copy "nextcloud: ^1.0.5" to clipboard
nextcloud: ^1.0.5 copied to clipboard

outdated

A Nextcloud client for dart which can use WebDav and parts of the OCS API

example/example.dart

import 'package:nextcloud/nextcloud.dart';

Future main() async {
  final client = NextCloudClient('cloud.example.com', 'myuser', 'mypassword');
  await listFiles(client);
  await client.webDav.move('/test.txt', '/abc.txt');
  await listFiles(client);
  await client.webDav.copy('/abc.txt', '/test.txt');
  await listFiles(client);

  final userData = await client.metaData.getMetaData();
  print(userData.fullName);
  print(userData.groups);
}

Future listFiles(NextCloudClient client) async {
  final files = await client.webDav.ls('/');
  for (final file in files) {
    print(file.path);
  }
}
25
likes
0
points
585
downloads

Publisher

unverified uploader

Weekly Downloads

A Nextcloud client for dart which can use WebDav and parts of the OCS API

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, intl, xml

More

Packages that depend on nextcloud