[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] LuaFileSystem 1.7.0
- From: Martin <eden_martin_fuhrspam@...>
- Date: Sat, 16 Sep 2017 23:34:55 +0100
On 09/16/2017 10:16 PM, Sean Conner wrote:
> Your job, should you choose to accept it, is to figure out the semantics
> of a Lua directory iterator.
I'm not affiliated with LuaFileSystem project but have implemented something
similar for my own needs.
This is two functions with same interface. Given directory name, one returns
sequence with file names, other - sequence with directory names.
They are implemented as running command like "find <dir_name> -maxdepth 1 -type
f" and processing output. So touching OS APIs may be avoided.