[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Function to return relative path?
- From: Thijs Schreijer <thijs@...>
- Date: Fri, 29 Nov 2013 15:21:58 +0000
> -----Original Message-----
> From: email@example.com [mailto:firstname.lastname@example.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.
> On 11/29/13, Jerome Vuarand <email@example.com> wrote:
> > 2013/11/29 Paul Merrell <firstname.lastname@example.org>:
> >> 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.
I think this would make a nice addition to the penlight `path` library.