- Published on
- Authors
- koskila
- Tags
- powershell
Properly checking if an item in a folder is a Directory or not in PowerShell
I got a great tip from a colleague on how to properly check if an item is a file or a directory. In one case we weren't really ever sure if another script had finished its running and unzipped a certain zip package into a folder, and we had to verify it had, before continuing the execution. Our initial implementation worked most of the time... But not quite always. The purpose of this blog post is to explain how we found a pretty well-working and elegant solution!
























