getDirectory method

Future<Directory> getDirectory(
  1. BucketFileSystemLocator bucketFileSystemLocator
)

Returns: Returns the directory object at the path.

Implementation

Future<Directory> getDirectory(
    BucketFileSystemLocator bucketFileSystemLocator) async {
  var result = await _client.send('FileSystem.getDirectory', {
    'bucketFileSystemLocator': bucketFileSystemLocator,
  });
  return Directory.fromJson(result['directory'] as Map<String, dynamic>);
}