in reply to File::Copy::Recursive::dircopy failing without error in $!
You should closely inspect the security settings of D:\Eterra\Distribution\XXXCorpXXX\bitmaps in Windows explorer. I could reproduce the behaviour (no files are copied, no content in $!) by denying write access for the destination file. These Windows DENY permissions can not be modified with chmod and they are not visible to any checks made by File::Copy::Recursive. On Windows, the copy operation eventually calls Win32::CopyFile which does not set $! in that case.
There may be other relevant settings in a Windows environment which I did not test. For example, chmod does only change the user's permission, the "group" and "others" parts are ignored.
A minor note: When you call clear_readonly_bit($destination); please be aware that this does not remove any readonly bit of $destination itself. This can bite you if $source and $destination are both files and not directories.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Copy::Recursive::dircopy failing without error in $!
by Lotus1 (Vicar) on Jun 13, 2018 at 19:04 UTC |