in reply to bin mode file copy
Another point: a directory is a special type of binary file and cannot be copied with a simple copy.
Also in Windows, it is not necessary to use \\, use / for the separators in file path. Perl will convert this the right way for Windows and it is easier to read.if (! (-d $filepath) && (-B $filepath) { true if not a directory and otherwise a binary file}
So I would suggest getting this force_move thing working with full file paths: copy full_dest_path, full_src_path.
|
|---|