[Top][All Lists]

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

Re: file-relative-name and remote files

From: Richard Stallman
Subject: Re: file-relative-name and remote files
Date: Tue, 25 Feb 2003 11:57:44 -0500

    Any file can be written as a name relative to any directory using the 
    ".." construct, as long as
    both are residing in the same directory tree. The problem is when they 
    reside in different trees.

What do you mean by "reside in different trees"?

    But file-relative-name needs to know when this is so. Try

       (file-relative-name "/dir/file" "/scp:address@hidden:/dir1/")

It returns "../../dir/file" which seems correct to me.

    ought to return "/dir/file" since filename is on the local machine and 
    directory on the remote,

It might be useful or convenient to return that instead; I am not
sure.  However, the current value isn't erroneous.

reply via email to

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