cs8898 Posted March 7, 2014 Share Posted March 7, 2014 Hy Guys, and i have an Problem, i have to list a directory, but the io module is deactivated my idea for file in io.popen("dir mods/*.*d* /b"):lines() do print(file) end Do you have any solutions Would nice to get some Answers sorry for mad realy bad english Link to comment
Moderators Citizen Posted March 7, 2014 Moderators Share Posted March 7, 2014 Hy Guys,and i have an Problem, i have to list a directory, but the io module is deactivated my idea for file in io.popen("dir mods/*.*d* /b"):lines() do print(file) end Do you have any solutions Would nice to get some Answers sorry for mad realy bad english Tell us why you need that, because maybe we will be able to find a workaround to do what you want to. And do you want to list the dirs on the server-side or on client-side ? I think the only way to list the server's folders is to write your own MTA Module to add the functions you can use in your server-sided scripts. Link to comment
ixjf Posted March 7, 2014 Share Posted March 7, 2014 The_GTA ported the MTA:Eir filesystem module to MTA:BLUE, you may try it if it turns out to be needed: https://wiki.multitheftauto.com/wiki/Modules/FileSystem Link to comment
cs8898 Posted March 11, 2014 Author Share Posted March 11, 2014 Thanks to ixjf that should work... I'm codeing an Medel Replacement script, but not for one Modle one file e.g. The files could be infernus1.dff; infernus2.dff... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now