Navigating in (s)FTP sites

Is there any easy way to copy or paste current directory name in (s)FTP site?
If I copy path I get something like ftp://hostname.com//var/www/directory
I would prefer /var/www/directory
It would be best to use the same command/shortcut for local (like c:\windows) and remote (FTP/sFTP) locations.

Also, if I have a path like /var/www in clipboard, I would like go pathentry accept this path and change location on (s)FTP.

I don't have any time to look at it right now... but you an probably get close to what you want by using the REGEXP option with the Clipboard COPYNAMES or Clipboard SET commands - or something similar?