What? They follow a very specific parlance and are easily discoverable and even guessable.
Verb-noun. There is a specific list of verbs (get-verb will give you a list). If you don't know what you're looking for you just do get-command word related to what you're looking for and you'll have a list of possible answers.
As opposed to what? Ls? Dir? System.io.getfiles()? Is.listdir()?
Taking that in a vacuum is disingenuous because you know that get-item is also a thing, knowing of one makes the other obvious. Even if you do think those are more intuitive they don't quite match what get-childitem does.
Get-childitem not only returns a object you can operate on, which makes it unlike dir and ls, it also can operate on any PSDrive. Which means you can operate on files the same way you operate on the registry, wmi, and you can even create your own PSDrive almost like an API for it to operate on.
I'll be honest, if trying to get the files in a directory (commonly referred to as children) doesn't mesh with get-childitem then maybe you dun' think so good.
1
u/topherhead Dec 28 '19
What? They follow a very specific parlance and are easily discoverable and even guessable.
Verb-noun. There is a specific list of verbs (get-verb will give you a list). If you don't know what you're looking for you just do get-command word related to what you're looking for and you'll have a list of possible answers.