Bozhidar Batsov <bozhidar@batsov.com> writes:
> Hi guys,
Hi Bozhidar,
(file-remote-p "/ssh:root@192.168.1.1:/some/path/file" 'localname)
> I wonder what's the authoritative way to obtain the local file name
> portion
> of a remote file name? I’m looking for a function that would turn
> "/ssh:root@192.168.1.1:/some/path/file" into "/some/path/file".
Internally, it could use Tramp, but you don't need to require it.
> I know of `tramp-dissect-file-name', but I wonder if there's a better
> way, that doesn’t involve requiring tramp.
Best regards, Michael.