create a directory?

create a directory?

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

Moderators: Moderators, Moderators

Post Reply
User avatar
Silentwings
Moderator
Posts: 3613
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.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: create a directory?

Post by jK »

0 x

gajop
Moderator
Posts: 3023
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.
0 x

User avatar
Silentwings
Moderator
Posts: 3613
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.
0 x

Post Reply

Return to “Lua Scripts”

cron