Better file system support #738
-
Is there plans to add FileSystem support into LuaU? I believe Lua 5.x had That said, is there also any plans to add better filesystem for -- Code.luau
require("Folder/Subfolder/Module") -- This is how you would access `Module` at the moment
require("Subfolder/Module") -- This should be how we access `Module` -- Module.luau
require("Folder/Subfolder2/FileData") -- This is how you would access `FileData` at the moment
require("../Subfolder2/FileData") -- This is ideally what we should do to access `FileData` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Agree, would be pretty helpful to have some sort of a relative file import system. EDIT: Just found #337 & https://github.com/Roblox/luau/blob/bsharp-rfc-libraries/rfcs/libraries.md#relative. |
Beta Was this translation helpful? Give feedback.
-
If you use Luau in your own software, you can try using original
and by changing code around But we do have plans to add built-in 'liolib.c' in the future. |
Beta Was this translation helpful? Give feedback.
If you use Luau in your own software, you can try using original
liolib.c
from Lua 5.1 with a few changes like adding missing defines/functions:and by changing code around
luaL_addsize
.But we do have plans to add built-in 'liolib.c' in the future.