http://qs321.pair.com?node_id=11110863


in reply to File::Copy::Recursive - current file/directory being processed

Sadly, an exercise in frustration. dircopy() fails even with sudo instantiate. Someone else reported same that if fails without any warning. Ive tried different warning levels and sudo or user, same thing. Copying from ext4>ext4 USB>USBdrive. Does a consistent 41964 files and hits something it doesnt like. Tried dircopy() naked eg without any callback same issue. bash cp -a sails through the directories with no problems. Al.

Replies are listed 'Best First'.
Re^2: File::Copy::Recursive - current file/directory being processed
by jcb (Parson) on Jan 04, 2020 at 00:55 UTC

    So the obvious question is "What is the 41965th file?" and you could try running the program in the debugger while your callback counts how many files it has seen and takes a different code path (on which you will set a breakpoint) after copying 41964 files to get an answer.

    I think that you have found a bug in File::Copy::Recursive. :-)