guile-devel
[Top][All Lists]
Advanced

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

Re: feature request: realpath


From: Alex Kost
Subject: Re: feature request: realpath
Date: Mon, 05 Jun 2017 22:47:02 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

j kalbhenn (2017-06-04 21:36 +0000) wrote:

>> Guile provides "readlink".  Isn't it the thing you need?
>
> no, i am afraid not. readlink returns the target of a symbolic
> link. realpath resolves all directory references like ".." and "." and
> all symbolic links in a path and returns a path that does not include
> those things.

Oh, I see.  There is 'canonicalize-path' that can handle ".." and "."

> i have now implemented my own version of realpath in scheme (could have
> used the ffi probably), but since it is a standard lib function in C and
> guile offers many other posix functions, i thought it would be well
> suited for inclusion.

Yeah, I agree, I also expected to see 'realpath' in Guile :-)

-- 
Alex



reply via email to

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