in reply to Re^4: File name is long to copy
in thread File name is long to copy

I don't think file system issue because other files in that folder are copied. I suspect only the file name issue. Can we copy the whole directory along with sub dir and files in one line of code?

Replies are listed 'Best First'.
Re^6: File name is long to copy
by marto (Cardinal) on Apr 26, 2020 at 14:00 UTC

      Hi,

      does Win32::Backup::Robocopy do unicode filenames?

Re^6: File name is long to copy
by Corion (Patriarch) on Apr 27, 2020 at 07:09 UTC

    You can look at File::Copy::Recursive or consider using your OS (Windows?) command line tools:

    my $cmd = qq{xcopy /s "$source" "$target"}; system( $cmd ) == 0 or die "Couldn't launch [$cmd]: $!/$?";