More FeedStoreProvider Goodness
Finally worked the last annoying bug out of my FeedStoreProvider for Windows PowerShell yesterday. If you're interested, I was passing an integer as the first parameter to WriteItemObject() from within my GetChildNames override, and it was causing grief. Always pass strings from there, people!
Anyway, here's my latest trick. Want some stats about your feed subscriptions?
cd feed: gci -recurse | where {$_ -is [Microsoft.Feeds.Interop.IFeed]} | Measure-Object ItemCount -sum -av -min -ma So we're getting all the child items on my "feed:" drive recursively, filtering the list so that we're only talking about feeds and not folders or feed-items, then getting some statistics from the list. The result on my home box:
Count : 87 Average : 93.551724137931 Sum : 8139 Maximum : 200 Minimum : 2 Property : ItemCount
So, I'm subscribed to 87 feeds here, with a total of 8139 items. On average, each feed has about 93 items.
Incidentally, I've added a custom parameter to "get-childitem" called "-unread", so you can, if you desire, list out only unread stuff in your subscriptions. That is, folders that contain feeds with unread items, feeds with unread items, and unread feed items. Very handy!
