Im using Net::sftp::foreign to maintain files across several hundred client machines. Im running into an issue where 'rename' creates the dest file but leaves a copy behind. ( i have to use rename as there isn't a 'move' command ).
I started trapping this specific issue as it comes up very regularly (10-20% - but measured against thousands of files its pretty annoying). When I try to use 'remove' to get rid of the 'dest' copy I get a TRUE (1) return but the file is still there!
Questions: what's a better approach? Is there an error that I should be looking at besides $sftp->error ?