Menu

#1030 Using unixextensions and SysGetdirlist, returns directories

None
closed
none
5
2013-11-22
2011-11-05
hex
No

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

Discussion

  • David Ashley

    David Ashley - 2011-11-10

    The docs have been updated to clarify this function (svn rev 7284). The code is working as intended.

     
  • hex

    hex - 2011-11-11

    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.

     
  • David Ashley

    David Ashley - 2011-11-11

    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.

     
  • hex

    hex - 2011-11-11

    Ok, seems reasonable

     
  • Rick McGuire

    Rick McGuire - 2013-11-22
    • Pending work items: --> none
    • Group: v4.2.0 --> None
     

Anonymous
Anonymous

Add attachments
Cancel