NSFileProviderReplicatedExtension metadata of the provided item

What's the purpose of NSFileProviderReplicatedExtension.item(for:request:completionHandler:) call. It seems like it duplicate what the NSFileProviderEnumerator.enumerateItems(for:startingAt:) already returned. I couldn't find where and why this method is called. What happens if it return different types than from the enumerator? Can you please point me to some explanation what is the relation between these two calls?

NSFileProviderReplicatedExtension.item(for:request:completionHandler:) is used to fetch information about the item that is about to be displayed on the screen, where NSFileProviderEnumerator.enumerateItems(for:startingAt:) is used to get the contents of the item (this is mainly only used for directories), as here you don't return info about the item itself. The items that you return to the observer shouldn't be directly used to display it on the screen, as you probably can return only a skeleton item, and fetch additional info, like the name of the user who last modified the item, etc., in the NSFileProviderReplicatedExtension.item(for:request:completionHandler:).

i ran into same problem, anybody can solove it? thank you

NSFileProviderReplicatedExtension metadata of the provided item
 
 
Q