Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-ChildItem and Get-Item should be able to work with ambiguous paths #3

Closed
krzysztof-chmiel opened this issue Jul 5, 2013 · 1 comment
Assignees
Labels
🌈 improvement Extra sugar and spice.
Milestone

Comments

@krzysztof-chmiel
Copy link

I have items with the same path in the system (it is not forbidden and sometime it happens). I've noticed that command get-childitem -recurse returns only only first item of those who have the same path.
I'm trying to use Powershell to repair such items so I would expect commands to return the additonal items in some way.

I'll find the items using object properties so there is no problem with it. But the queestion is: it this a feature of commands to treat the item path as unique? If yes and that will be left for better performance I would be happy if there would be some switch to turn that assumption off for example "-nonUniquePaths" param.

@AdamNaj AdamNaj closed this as completed Jul 7, 2013
@AdamNaj
Copy link
Member

AdamNaj commented Jul 7, 2013

I assume the Get-ChildItem does this when you use -Query param with Sitecore Query? otherwise it seemed to be working fine for me. Anyway Use -AmbiguousPaths parameter on Get-Item and Get-ChildItem for the provider to resolve such conflict and push all of the ambiguously named item to the pipeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌈 improvement Extra sugar and spice.
Projects
None yet
Development

No branches or pull requests

2 participants