BeechCMS / @beechcms/core / IContentScanRepository
Interface: IContentScanRepository
Methods
getReferencedMediaKeys()
getReferencedMediaKeys(
seeds,options?):Promise<Set<string>>
Scans across all registered seeds to identify media keys that are currently referenced by any content entry, live or draft. Used for orphaned media detection and storage analytics.
A caching implementation may answer from a recent scan; fresh forces a new one and is required before any destructive decision (deleting a file).
Parameters
seeds
Seed[]
options?
fresh?
boolean
Returns
Promise<Set<string>>