-
Notifications
You must be signed in to change notification settings - Fork 588
Open
Labels
distro-mswin32ext-File-Findissues in the blead-only File-Find distributionissues in the blead-only File-Find distribution
Description
If File::Find is run with follow => 1
on Windows, $File::Find::fullname
is always undef.
As the docs say, "follow ... is also a no-op on Win32", literally, i.e. $fullname is not implemented at all and so is always undef.
This seems unsafe because scripts written to handle symlinks must check File::Find::fullname for undef to avoid wrongly following broken links, and as a result such scripts think every file is a broken link on Windows.
I'm wondering if it would be better to set fullname
to name
on Win32 (and also guarantee to stat the file so the "_" handle is valid) so scripts can more often work as-is without having to hack around with $^O in the wanted
function.
Metadata
Metadata
Assignees
Labels
distro-mswin32ext-File-Findissues in the blead-only File-Find distributionissues in the blead-only File-Find distribution