Won't that just result in a symlink with a dirname ending in .ps not to be resolved?
I don't know why you use pattern matching, but I'm sure there must be some easier way to decide if it's a link or not.
In *nix it is an attribute in the file access permission.
A filename has -xxxxxxxxx, a dirname has dxxxxxxxxx and a link has lxxxxxxxxx. I don't know how it is handled on Windows systems though.
/Zio
|