Reputation: 52942
I've looked at some other questions on here regarding this but I don't get it. I want to get all .less files in my solution and compile them into a single file.
It worked great thanks to an answer on here but i discovered I need to ignore the folder 'OBJ' and its sub folders.
I tried this based on answers here but no dice. Any ideas?
ls $dirPath -r -I *.less | ? { $_psiscontainer -and $_.fullname -notmatch 'obj' }
| gc | sc -enc UTF8 $dirPath\Styles\CompiledLESS.less
Upvotes: 0
Views: 232
Reputation: 68273
In your Where-Object filter, you've specified $_.psiscontainter. This means you are keeping just the directory objects and discarding all the file objects.
Upvotes: 1