Using unixextensions and SysGetdirlist
Which according to the manual, only should return files in a directory as an array, but it also returns directories within
the directory.
By the way, the manual should mention that ::requires "rxunixsys" LIBRARY must be specified in the rexx program.
This on 32bit
Ubuntu 8.04 LTS or/and Ubuntu 11.10 with oorexx_4.2.0-7274_i386.deb installed
Anonymous
The docs have been updated to clarify this function (svn rev 7284). The code is working as intended.
Rather unusefull function then, if you can't tell what is returned, if it's a file or directory etc, not just a name.
More interesting to be able to specify what should be returned with a parameter passed to the function, then it least, one will know what is returnd.
If you need to know more about an entry you can always pass it to the SysIsFile, SysIsFileDirectory or SysIsFileLink functions to find out the true nature of the entry.
All the usinc extensions are designed to replicate low level Unix API behaviour. This is because different systems might return different information and we want to return simple data and not over provide data not useful to the programmer. It also keeps the function very efficient.
Ok, seems reasonable