---
title: enumeratorForMaterializedItems()
framework: fileprovider
role: symbol
role_heading: Instance Method
path: fileprovider/nsfileprovidermanager/enumeratorformaterializeditems()
---

# enumeratorForMaterializedItems()

Returns an enumerator for all the items the system currently stores on disk.

## Declaration

```swift
func enumeratorForMaterializedItems() -> any NSFileProviderEnumerator
```

## Mentioned in

Synchronizing the File Provider Extension

## Discussion

Discussion In most cases, the system requests an enumerator from the File Provider. The file provider creates the enumerator, and uses it to pass information back to the system. In this case, however, the roles are reversed. The File Provider extension calls this method to request an enumerator from the system. The system then creates the enumerator and uses it to pass the list of items currently stored on disk back to the File Provider extension.

## See Also

### Working with items

- [reimportItems(below:completionHandler:)](fileprovider/nsfileprovidermanager/reimportitems(below:completionhandler:).md)
- [evictItem(identifier:completionHandler:)](fileprovider/nsfileprovidermanager/evictitem(identifier:completionhandler:).md)
- [requestDownloadForItem(withIdentifier:requestedRange:)](fileprovider/nsfileprovidermanager/requestdownloadforitem(withidentifier:requestedrange:).md)
- [requestDownloadForItem(withIdentifier:requestedRange:completionHandler:)](fileprovider/nsfileprovidermanager/requestdownloadforitem(withidentifier:requestedrange:completionhandler:).md)
- [requestModification(of:forItemWithIdentifier:options:completionHandler:)](fileprovider/nsfileprovidermanager/requestmodification(of:foritemwithidentifier:options:completionhandler:).md)
- [enumeratorForPendingItems()](fileprovider/nsfileprovidermanager/enumeratorforpendingitems().md)
