in reply to File::Copy::Recursive dircopy side effect
It is a simple bug in how File::Copy::Recursive uses File::Spec. Look at "sub pathmk" in Recursive.pm.
It does @parts = File::Spec->splitdir($path) and joins those parts back together one-at-at-time using File::Spec->catdir(). That process turns \\server\d\dir into \server\d\dir because splitdir returns ( '', '', 'server', 'd', 'dir' ) but File::Spec->catdir('','') returns '\\' (the string \) not '\\\\' (the string \\).
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Copy::Recursive dircopy side effect (File::Spec)
by niewczyk (Initiate) on Feb 17, 2014 at 16:19 UTC | |
by tye (Sage) on Feb 18, 2014 at 07:42 UTC |