Ну тогда попробую еще предложить pl.dir из
http://lua-users.org/wiki/FileSystemOperations

Если снова не то, перестаю умничать :)

2011/2/28 Vsevolod Stakhov <vsevo...@freebsd.org>

> On 02/28/2011 10:09 PM, Igor Karpov wrote:
>
>> Прежде всего, спасибо за столь интересный и объемный пост. :)
>>
>>
>>    я не нашел, как в lua получить список файлов по маске.
>>    можно было бы реализовать подключение правил из всех файлов из
>>    определенного каталога.
>>
>> Я ни разу не программист на lua, но вот что дает беглый поиск:
>>
>>    *To grab the filenames of all *.txt files in a given directory, this
>>    seems to be the most effective way:*
>>    *allfiles=murgaLua.readDirectory("/home/mik")*
>>    *for i=1,table.maxn(allfiles) do*
>>    *if string.find(allfiles[i],"%.txt$") then print(allfiles[i]) end*
>>    *end*
>>    *
>>    *
>>    *Apparently table.getn(table) has the same result as table.maxn(table)*
>>    *I dunno if one is actually better than the other.*
>>    *
>>    *
>>    *http://www.murga-projects.com/forum/showthread.php?tid=43*
>>
>> Подойдет? :)
>>
>
> Ну, это вызов некой C функции объекта. Из си, разумеется, все сделать очень
> просто. Если будет потребность, добавлю :)
>
> --
> Vsevolod Stakhov
>
>
> _______________________________________________
> Exim-users mailing list
> Exim-users@mailground.net
> http://mailground.net/mailman/listinfo/exim-users
>
_______________________________________________
Exim-users mailing list
Exim-users@mailground.net
http://mailground.net/mailman/listinfo/exim-users

Ответить