|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Request: lib_file_io additions |
Date: | Tue, 08 Jul 2014 14:08:05 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi,I think we have to draw the border between FILE_IO and convenience functions somewhere.
Otherwise we would end up with the entire libc accessible via FILE_IO. And, remember, we have this nice language called APL to do such things. /// Jürgen On 07/08/2014 05:56 AM, David B. Lamkins wrote:
It looks like glob() subsumes the function of readdir(). There are some nasty details with allocated results, too... You could, however, combine fnmatch() with readdir(). http://linux.die.net/man/3/fnmatch On Tue, 2014-07-08 at 11:44 +0800, Elias Mårtenson wrote:How about adding support for a dyadic form where the left-side argument is a glob pattern to be used when matching the file names? http://linux.die.net/man/3/glob Regards, Elias
[Prev in Thread] | Current Thread | [Next in Thread] |