in reply to [Solved] Cannot copy files from linux shared to windows

What is the error message?
  • Comment on Re: Cannot copy files from linux shared to windows

Replies are listed 'Best First'.
Re^2: Cannot copy files from linux shared to windows
by bbb (Novice) on Nov 05, 2014 at 08:39 UTC

    It says Copy failed: at copyfile.pl line 24

      It says Copy failed: at copyfile.pl line 24

      That's not good enough :)

      What is line 24?

      Is it the call to File::Copy::copy()

      or to  'cp -r ($File::Find::name, $target)'

      backticks do not communicate errors via $!

      You might try dying via sub Fudge for File::Copy::copy and Capture::Tiny for "cp.exe"

        My bad, line 'cp -r ($File::Find::name, $target)' should not be included. I had updated the script without the "cp -r" line.

        line 24 is "copy ($File::Find::name, $target) or die "Copy failed: $!";

        The whole line I found in log file is "Copy failed: at copyfile.pl line 24 <$file> line 14."