Ejemplo n.º 1
0
        public override INSFileProviderEnumerator GetEnumerator(string containerItemIdentifier, out NSError error)
        {
            error = null;
            if (containerItemIdentifier == NSFileProviderItemIdentifier.WorkingSetContainer)
            {
                return(new EmptyEnumerator());
            }

            if (LocationMapper.IsFolderIdentifier(containerItemIdentifier))
            {
                return(new FolderEnumerator(containerItemIdentifier, StorageManager));
            }


            return(new FileEnumerator(containerItemIdentifier, StorageManager));
        }