def format_remote_path(host, path):
 if (host is None):
  return path
 return ('%s:%s' % (safe_ip_format(host), path))

def format_remote_path ( host , path ) : if ( host is None ) : return path return ( '%s:%s' % ( safe_ip_format ( host ) , path ) )
returns remote path in format acceptable for scp/rsync .