thank a lot for your great App, it helps a lot, and the Lua API is a very useful Feature to automate the daily tasks
I have a feature request for the API as i don't see any chance to do it.
I want to get get all files of the directory where the current script is.
For example the script run in this directory:
/storage/0/Notes
and the script name is
myscript.lua
I want to get at the script myscript.lua all files which matches this pattern:
myscript_PluginName1.lua
myscript_PluginName2.lua
myscript_PluginName3.lua
Of course, PluginName can be every name, so there is no way to assume a specific Plugin file exists.
I tried to list files of a directory though lua with os.execute and io.popen, but it's disabled due to security reasons.
Is there a way to get file files a wrote above? If yes, how to do it? If no, can the feature implemented to GG ?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
Blackn
Hello GG Team,
thank a lot for your great App, it helps a lot, and the Lua API is a very useful Feature to automate the daily tasks
I have a feature request for the API as i don't see any chance to do it.
I want to get get all files of the directory where the current script is.
For example the script run in this directory:
/storage/0/Notes
and the script name is
myscript.lua
I want to get at the script myscript.lua all files which matches this pattern:
myscript_PluginName1.lua
myscript_PluginName2.lua
myscript_PluginName3.lua
Of course, PluginName can be every name, so there is no way to assume a specific Plugin file exists.
I tried to list files of a directory though lua with os.execute and io.popen, but it's disabled due to security reasons.
Is there a way to get file files a wrote above? If yes, how to do it? If no, can the feature implemented to GG ?
Thank you in advance,
Blackn
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.