my $check_path = $remoteh->do_opendir( $target_root . '/' . $remote_dir ); Couldn't get handle: Failure at ./image_upload.pl line 77