Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!van-bc! From: lphillips@lpami.wimsey.bc.ca (Larry Phillips) Newsgroups: comp.sys.amiga.tech Subject: Re: rexxarplib Message-ID: <1674@lpami.wimsey.bc.ca> Date: 2 Jun 90 14:56:42 GMT Lines: 42 Return-Path: To: van-bc!rnews In <03248.AA03248@waf2000.UUCP>, will@waf2000.UUCP (Will Fiveash) writes: >I am having trouble getting the rexxarplib function FileList to work as >advertised. When I specify that I want directories only I get both files >and directories, e.g.: FileList(dirpat, filelist,'D',E ). Xoper reports >that I am using rexxarplib v2.3. Any help would be appreciated. > >BTW, I have programmed a man command in ARexx that will search Man: and >its subdirectories for *. If no arguement is given then the Arp >file requestor is used to browse Man:. Let me know if you want the source. I'd like to see it. I just tried the FileList() on my rexxarplib, and indeed it does what you say. I have never noticed this, because I use showdir(). Here's a few examples... ; get contents of current dir (minimum required) x = showdir('') ; get contents of specified directory x = showdir('dh0:') ; get list of directories in specified directory x = showdir('dh0:','d') ; get list of files in specified directory, separated by '0A'x ; this is handy for directories containing names with spaces in them x = showdir('dh0:','f','0a'x) -larry -- The raytracer of justice recurses slowly, but it renders exceedingly fine. +-----------------------------------------------------------------------+ | // Larry Phillips | | \X/ lphillips@lpami.wimsey.bc.ca -or- uunet!van-bc!lpami!lphillips | | COMPUSERVE: 76703,4322 -or- 76703.4322@compuserve.com | +-----------------------------------------------------------------------+