|Subject:||Re: Remove the magic portion of a remote file name|
|Date:||Wed, 16 Apr 2014 17:52:57 +0300|
Bozhidar Batsov <address@hidden> writes:
> Hi guys,
(file-remote-p "/ssh:address@hidden:/some/path/file" 'localname)
> I wonder what's the authoritative way to obtain the local file name
> of a remote file name? I’m looking for a function that would turn
> "/ssh:address@hidden:/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.
|[Prev in Thread]||Current Thread||[Next in Thread]|