Nmap Development mailing list archives

Re: [NSE] Adding mkdir support


From: Patrick Donnelly <batrick () batbytes com>
Date: Thu, 29 Mar 2012 17:34:50 -0400

On Thu, Mar 29, 2012 at 5:00 PM, Patrik Karlsson <patrik () cqure net> wrote:
Hi all,

I'm working on implementing the http-mirror script and ran into some
trouble as there's no support for creating directories from within NSE.
I've tried to achieve this through the attached patch, and as my focus is
mostly Lua, I would appreciate some comments concerning the implementation.
I know that there is a luafilesystem module providing this and some
additional functionality, but at this point mkdir is really the only thing
I need to complete the script.

In the past we have added parts of luafilesystem (directory iterator
comes to mind) which ended up being copied to nse_fs.cc. Maybe it's
time to just add lfs to NSE entirely?

-- 
- Patrick Donnelly
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: