Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.0
-
None
Description
Windows.pm filesystem_entry_exists() subroutine may return true even if output contains "file not found". This occurs because the exit status of the dir command used to tell if the file exists may be set to 0 if a known Perl bug occurred where the exit status was -1.
The checking can be rearranged to first check the output from the dir command instead of the exit status. If it contains "file not found", return 0.