Questions tagged [luafilesystem]

It is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.

Overview

LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.

It offers a portable way to access the underlying directory structure and file attributes.

License

LuaFileSystem is free software and uses the same license as Lua 5.1.

Useful resources

Wiki excerpt from online documentation pages

22 questions
0
votes
1 answer

LUA 5.2: Load/Require/etc - Limit it to specific directories that can be loaded

I am attempting to secure LUA on my game (players can create scripts in LUA). I've removed many functions to create a sandbox of sorts, (AKA removing os.execute function for example.) however, my game does use loading of scripts from other locations…
Valleriani
  • 193
  • 11
0
votes
1 answer

Trouble installing luasocket/lfs using luarocks

I installed luarocks and now I am trying to use it to install luasocket. My command is luarocks install luasocket-2.0.2-3.win32-x86.rock and the response I get is C:\Program Files (x86)\LuaRocks\lua\luarocks\command_line.lua:186: bad argument #1 to…
BoarGules
  • 16,440
  • 2
  • 27
  • 44
0
votes
1 answer

Lua File System DLL Not Valid

Pretty new to the LUA environment, so hopefully i'm just missing something really small. I've been trying to compile LuaFileSystem using LuaRocks and MinGW. After having finally compiled it, I am trying to load the DLL…
JCricket
  • 1,318
  • 2
  • 17
  • 34
0
votes
1 answer

How to check if a file is read only?

Neither io nor lfs seem to have an option to check for this. I need to use this feature to simulate some code that does this check.
amtra5
  • 31
  • 2
  • 4
0
votes
1 answer

How to call the lfs module in ngx_lua?

I want to use lfs module in my ngx_lua programe, I download the source package from github and compile it with luajit2.0.3. The static file is in /usr/local/lib. My nginx.conf's content are as follow: http { lua_shared_dict my_cache 10m; …
yakantosat
  • 11
  • 4
0
votes
1 answer

file are saving out of the folder, how to save within

I want to save my files within a folder but the issue which raising is that my files are storing outside of the folder which is annoying. I am sharing what I have done so far. -- get raw path to app's Temporary directory local doc_path =…
aneela
  • 1,457
  • 3
  • 24
  • 45
-3
votes
1 answer

facing issue in lua code

How can I match "words" mixed parenthesis delimited strings, on the basis that they are separated by whitespaces. EG: split_words_and_parenthesis("1791 (AR6K Async) S 2 ") --> {"1791","AR6K Async","S","2"} Here's my attempt: str = "1791 (AR6K…
1
2