emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove the magic portion of a remote file name


From: Bozhidar Batsov
Subject: Re: Remove the magic portion of a remote file name
Date: Wed, 16 Apr 2014 17:52:57 +0300

Thanks, Michael! I guess I didn't expect that a function with a predicate name would do something like that. :-)


On 16 April 2014 17:11, Michael Albinus <address@hidden> wrote:
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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]