Re: [Vala] file globbing?
- From: Jan Hudec <bulb ucw cz>
- To: Jani Monoses <jani ubuntu com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] file globbing?
- Date: Tue, 7 Dec 2010 21:33:23 +0100
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]