It should work. Are you perhaps only testing "$file" when you should be testing, e.g., "$path/$file" or do you first need to chdir to $path? Do you need to chomp your input?
Comment on Re: Test if a file is a directory in Windows
Thanks. I knew it would be something obvious. I didn't chomp anything. I'll try it when I get to work tomorrow. I'm sure that is the problem.
Thanks again!