Luxinia used an internal way to gain access to the directory structures that was located in the luxinia.dir function that was undocumented. The function returned a table of filenames. For plattformindependance and other reasons, we decided to use the Lua File System which is part of the Kepler project (http://www.keplerproject.org/luafilesystem/). You can use the lfs lib or this class. This class is a pure wrapper for the lfs lib and provides only additional documentation in the way the other classes are described. The function descriptions are extracts from the lfs documentation that can be found at the given link.
return true if the given file is an directory
Locks a file or a part of it. This function works on open files; the file handle should be specified as the first argument. The string mode could be either r (for a read/shared lock) or w (for a write/exclusive lock). The optional arguments start and length can be used to specify a starting point and its length; both should be numbers.
Returns true if the operation was successful; in case of error, it returns nil plus an error string.Set access and modification times of a file. This function is a bind to utime function. The first argument is the filename, the second argument (atime) is the access time, and the third argument (mtime) is the modification time. Both times are provided in seconds (which should be generated with Lua standard function os.date). If the modification time is omitted, the access time provided is used; if both times are omitted, the current time is used.
Returns true if the operation was successful; in case of error, it returns nil plus an error string.Unlocks a file or a part of it. This function works on open files; the file handle should be specified as the first argument. The optional arguments start and length can be used to specify a starting point and its length; both should be numbers.
Returns true if the operation was successful; in case of error, it returns nil plus an error string.