in reply to Test if a file is a directory in Windows

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

Replies are listed 'Best First'.
Re: Re: Test if a file is a directory in Windows
by Arcanum (Sexton) on Sep 18, 2001 at 06:21 UTC
    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!