From: Vladimir Dronnikov <dronni...@gmail.com>
Date: Thu, 12 Jul 2012 12:32:30 +0400
Local: Thurs, Jul 12 2012 4:32 am
Subject: Re: : "absolutize" a path in Luvit
consider joining the club -- #luvit at irc.freenode.net
On Thu, Jul 12, 2012 at 12:26 PM, Enrique Garcia Cota <kik...@gmail.com> wrote:
> I didn't know about __dirname and process.cwd() bits. I will check them out!
>> I'd recommend you to put security efforts to
> I was thinking about implementing a path.expand(filepath, dir) method, but
> Let me tinker with the code for a while and see what I can get.
> Enrique
> On Thu, Jul 12, 2012 at 9:51 AM, Vladimir Dronnikov <dronni...@gmail.com>
>> > I have found an easy enough to understand implementation of absolutize
>> > https://github.com/rubinius/rubinius/blob/master/kernel/common/file.r...
>> I'd recommend you to put security efforts to
>> > Two questions:
>> > Does Luvit have access to environment variables (such as $HOME)?
>> `process.env.HOME`
>> > I think I can try to make a patch for Luvit adding this method to path.
>> we have `__dirname` in modules, plus `process.cwd()` to get absolute
>> --Vladimir
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||