prefixes property
List<StorageReference>
prefixes
References to prefixes (sub-folders). You can call list()
on
them to get its contents.
Folders are implicit based on '/' in the object paths. For example,
if a bucket has two objects '/a/b/1' and '/a/b/2', list('/a')
will
return '/a/b' as a prefix.
Implementation
/// Folders are implicit based on '/' in the object paths. For example,
/// if a bucket has two objects '/a/b/1' and '/a/b/2', [list('/a')] will
/// return '/a/b' as a prefix.
List<StorageReference> get prefixes => jsObject.prefixes
.map((dynamic data) => StorageReference._fromJsObject(data))
.toList();