A few follow-up questions:
Materialized items will not include sparse files(partially downloaded). Is there a way to list such files ?
isRecursivelyDownloaded of sourceItem or destinationItem - Does this apply only to folders ?
DomainRemovalMode.preserveDownloadedUserData -Materialized items retain file attributes upon unmounting. How can I change read-only items to read-write?
NSFileProviderReplicatedExtension.invalidate -> NSFileProviderManager.signalEnumerator(for:) -> NSFileProviderItem.capabilities
Is it possible to trigger signalEnumerator on invalidate to change the file attribute state just before domain removal ?