createDirectory method

  1. @override
Future<void> createDirectory(
  1. String path
)
override

Creates a new directory in the cloud storage.

Implementation

@override
Future<void> createDirectory(String path) async {
  if (!_isAuthenticated) {
    throw Exception('Not authenticated');
  }

  await client.createDirectory(path,
      isAppFolder:
          MultiCloudStorage.cloudAccess == CloudAccessType.appStorage);
}