getDirectoryContents method

Future<List<Map<String, dynamic>>> getDirectoryContents(
  1. String path
)

Retrieves contents of a specific directory.

path - The absolute path of the directory to scan Returns a List of Maps with item metadata (name, path, type, size, etc.)

Example:

final contents = await MediaManagerPlatform.instance.getDirectoryContents('/storage/DCIM');

Implementation

Future<List<Map<String, dynamic>>> getDirectoryContents(String path) {
  throw UnimplementedError(
    'getDirectoryContents() has not been implemented.',
  );
}