Re: [Vala] file globbing?



On Tue, Dec 07, 2010 at 21:59:42 +0200, Jani Monoses wrote:
 is there an easy way of getting a list of files matching a pattern
in a directory (like Python's glob.glob() ) short of
enumerate_children() and checking each returned name explicitly
using regexps?

POSIX has a function glob to do exactly that. Unfortunately I don't see it
bound in posix.vapi, so you would have to provide appropriate extern
declaration yourself.

-- 
                                                 Jan 'Bulb' Hudec <bulb ucw cz>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]