[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Function to return relative path?
- From: Thijs Schreijer <thijs@...>
- Date: Fri, 29 Nov 2013 15:21:58 +0000
> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of kamicc olo
> Sent: vrijdag 29 november 2013 13:30
> To: Lua mailing list
> Subject: Re: Function to return relative path?
>
> I guess Lua Penlight library worth a shoot too. Especially if You're
> familiar with Python analogues.
>
> Link:
> http://stevedonovan.github.io/Penlight/api/modules/pl.path.html
>
> On 11/29/13, Jerome Vuarand <jerome.vuarand@gmail.com> wrote:
> > 2013/11/29 Paul Merrell <marbux@gmail.com>:
> >> To avoid reinventing the wheel, I thought I'd ask whether anyone has a
> >> function that will return a relative path from absolute paths for the
> >> current and destination directories? Something along the lines of:
> >>
> >> function(curdir, destdir)
> >> ...
> >> return reldir
> >> end
> >>
> >> I googled around but found only a function that has dependencies.[1]
> >
I think this would make a nice addition to the penlight `path` library.
Thijs