@Michael thank you I will take a look at your articles. @Yang Many thanks, I have had a look a the d8 source and it appears to achieve what I need. I will experiment with this. Initially I will stick to the posix implementation and if my open source project becomes a success then I shall look into creating the windows implementation.
Many thanks guys! Lea On Sep 8, 10:52 am, Yang Guo <[email protected]> wrote: > Hi, > > You may want to look into the code for the d8 shell (the more powerful > development shell the v8 team uses for testing and debugging). In > particular the os object defined in Shell::CreateGlobalTemplate() and > implemented in d8-posix.cc. Unfortunately, there is currently no > windows implementation, but it should be easy to port the posix > implementation. You are of course welcome to upstream your > implementation. > > Cheers, > > Yang > > On Sep 7, 6:52 pm, Lea Hayes <[email protected]> wrote: > > > > > > > > > Hello, > > > I have modified the 'Shell' sample to my needs but I need to bind methods > > into the global context object which allow: > > > - create directory > > - delete directory > > - delete all files that match pattern in directory > > - move file(s) > > - copy file(s) > > > Which is the best approach to take? Is Boost filesystem a good choice for > > this? It seems a little overkill as the V8 engine already has regex > > processing, etc. > > > I would like make the application compatible with Linux, Mac OS and Windows. > > > How does the Chromium project go about managing files and directories? > > > Any guidance would be very much appreciated. > > > Many thanks -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
