"Michael Herman (Parallelspace/OpenCanal)"
<mwherman@nospam.parallelspace.nospam.net.nospam> wrote in message
news:ukDMCOsdHHA.3272@TK2MSFTNGP03.phx.gbl...
> Context
>
> Think of a SharePoint site and the URL that names it. e.g.
> http://server/site1/site1_1/site_1_1_1
>
> site_1_1_1 is a SharePoint site that can have 2 kinds of child objects:
> subsites and lists/document libraries.
>
> Question
>
> 1. If I'm building a custom provider and a path can have 2 types of child
> objects, what should get-childitem return?
It should return all of the child objects. You can return more than one
type of object. You will probably want to make sure that your
Formats.ps1xml file specifies the same format for all of the objects
returned because out-default only looks at the first object to determine how
to format. If subsequent objects don't use that same format, they are
displayed as a full object dump.