3 ms·
That's a bad idea - the inbuilt 'ls' (aka get-childitem - it also works on registry paths) will output real file objects, with properties you can access with 's
by nailer 10y ago
That's a bad idea - the inbuilt 'ls' (aka get-childitem - it also works on registry paths) will output real file objects, with properties you can access with 'select' and 'forEach' etc, whereas the GNU tool will output text you'll have to scrape.
- Diti 10y agoI would use `Get-ChildItem` directly in that case. When I use `ls`, I expect it to be POSIX `ls`.