I'm working on a file provider extension that maps to a cloud service. The remote service represents files using paths, directories and filenames (unsurprising). However, the NSFileProviderReplicatedExtension wants persistent identifiers for every item (file or folder).
What's the best practice here? I naively thought I could just use the URL as the identifier, but that breaks down as soon as items are moved - the URL changes, which would mean the identifier does too.
Is it necessary to maintain some kind of mapping in the extension? Does this have to be persisted somehow, or can it be in-memory only? If it's persistent, how would one typically do this?
Thanks for any insight!