prefixes property

List<Reference> 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

List<Reference> get prefixes {
  return _delegate.prefixes
      .map<Reference>(
          (referencePlatform) => Reference._(storage, referencePlatform))
      .toList();
}