I guess you're using the OpenSSH package.
If so, it allows you to run remote commands using the ->system method. So, to create a remote directory before copying, you could run:
$ssh->system(qq{mkdir "$remote_dir"});
In reply to Re: creating a directory remotely implicitly
by Corion
in thread creating a directory remotely implicitly
by t-rex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |