Jump to content

Lua dir listing


cs8898

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...