my $lsize=-s $filename; my $rsize=$remote->size($filename); if ($lsize!=$rsize) { croak "Corruption!"; };
This works fine, until I run this on windows... then it seems like '-s' reports wrong filesize (maybe \r\n is counted as one character?)
In reply to Portable filesize check? (Win32) by Eyck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |