[PS] Design reason for Get-ChildItem distinct from Get-Item?

Discussion in 'Scripting' started by Alex K. Angelopoulos [MVP], May 17, 2006.

  1. What's the reason that Get-ChildItem was made a distinct command, again?

    I was recently comparing Get-Item and Get-ChildItem and it isn't immediately
    apparent why we _need_ two distinct commands. It looks like Get-Item could
    serve in both roles if it had a -Recurse parameter.
     
    Alex K. Angelopoulos [MVP], May 17, 2006
    #1
    1. Advertisements

  2. From the user perspective, there truly isn't a need for two cmdlets. There
    most definitely is a need for this at the API level (since it is often more
    efficient for a provider to return all children at once,) but that
    distinction leaked a little into the user model.
     
    Lee Holmes [MSFT], May 19, 2006
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.