CBLFileSystemFolderItem

Objective-C

@protocol CBLFileSystemFolderItem <NSObject, CBLFileSystemItem>

Swift

protocol FileSystemFolderItem : NSObjectProtocol, CBLFileSystemItem

Represents a folder on a camera’s storage device.

  • Returns an array of child objects, if the folder has been loaded.

    Note

    For performance and memory reasons, storage objects to not automatically load the contents of any of its child folders - you need to iterate the filesystem in a manner that best fits your application.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSArray<id<CBLFileSystemItem>> *children;

    Swift

    var children: [any CBLFileSystemItem]? { get }
  • Returns true if this item has successfully loaded its children (even if it has no children), otherwise false.

    Note

    For performance and memory reasons, storage objects to not automatically load the contents of any of its child folders - you need to iterate the filesystem in a manner that best fits your application.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL childrenLoaded;

    Swift

    var childrenLoaded: Bool { get }
  • Returns true if this item is currently in the process of loading its children.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL childrenLoading;

    Swift

    var childrenLoading: Bool { get }
  • Attempt to load the item’s children.

    Note

    For performance and memory reasons, storage objects to not automatically load the contents of any of its child folders - you need to iterate the filesystem in a manner that best fits your application.

    Declaration

    Objective-C

    - (void)loadChildren:(nonnull CBLErrorableOperationCallback)callback;

    Swift

    func loadChildren(_ callback: Any!)

    Parameters

    callback

    The callback to trigger when the operation succeeds (or fails).