print "# \$File::Find::dir => '$File::Find::dir'\n";
print "# \$_ => '$_'\n";
s#\.$## if ($^O eq 'VMS' && $_ ne '.');
+ s/(.dir)?$//i if ($^O eq 'VMS' && -d _);
ok( $Expect_File{$_}, "Expected and found $File::Find::name" );
if ( $FastFileTests_OK ) {
delete $Expect_File{ $_}
} else { # $first_arg ne '.'
return $first_arg unless @_; # return plain filename
- return File::Spec->catdir($first_arg, @_); # relative path
+ my $fname = File::Spec->catdir($first_arg, @_); # relative path
+ $fname = VMS::Filespec::unixpath($fname) if $^O eq 'VMS';
+ return $fname;
}
}
} else { # $first_arg ne '.'
return $first_arg unless @_; # return plain filename
- return File::Spec->catfile($first_arg, @_); # relative path
+ my $fname = File::Spec->catfile($first_arg, @_); # relative path
+ $fname = VMS::Filespec::unixify($fname) if $^O eq 'VMS';
+ return $fname;
}
}