判断是否为目录

$a.PsISContainer -ne $True

原文地址:https://www.cnblogs.com/dreamer-fish/p/3977782.html