create a directory?

create a directory?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

create a directory?

Post by Silentwings »

Is it possible for luaui to create a new subdirectory in the Spring datadir? (And then write files into that subdir.)

I would normally have used mkdir and os.execute to do this but, for obvious reasons, luaui cannot use that.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: create a directory?

Post by jK »

gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: create a directory?

Post by gajop »

@jk: do you think those should be migrated to VFS.* ? For now I've cross linked the two wiki parts as it's highly related and feels sorta out of place.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: create a directory?

Post by Silentwings »

Ah thanks, fwiw I did check the VFS page but never thought to look elsewhere.
Post Reply

Return to “Lua Scripts”