[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remove the magic portion of a remote file name
From: |
Michael Albinus |
Subject: |
Re: Remove the magic portion of a remote file name |
Date: |
Wed, 16 Apr 2014 16:11:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Bozhidar Batsov <address@hidden> writes:
> Hi guys,
Hi Bozhidar,
> 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:address@hidden:/some/path/file" into "/some/path/file".
(file-remote-p "/ssh:address@hidden:/some/path/file" 'localname)
> I know of `tramp-dissect-file-name', but I wonder if there's a better
> way, that doesn’t involve requiring tramp.
Internally, it could use Tramp, but you don't need to require it.
Best regards, Michael.