[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: porting to Windows
- From: Valerio Schiavoni <valerio.schiavoni@...>
- Date: Thu, 15 Jul 2010 10:02:24 +0200
hello,
i'm trying to remove some unix-only code from a library to be possible
to run it on windows as well.
Not being a Windows user from a long time now, I was wondering how you
would port calls like those:
jobd_no_sandbox.lua:76: os.execute("rm -fr "..job_file.." > /dev/null 2>&1")
splayd.lua:958:root_dir = io.popen("pwd"):read()
splayd.lua:1061:splayd.status.full_os = io.popen("uname -a"):read()
In particular, is there something in Lua to get the current-platform
directory separator on paths?
And is it possible to delete files without using the lfs module?
Thanks,
Valerio