Well I solve my problem adding a code line.
public class HelloVala: GLib.Object {
public static int main (string[] args) {
string cadena = uno,dos,tres,cuatro;
string[] arreglar_bug = cadena.split(,);
stdout.printf(Cantidad de elementos %i\n,arreglar_bug.length);
return 0;
}
}
El lun, 06-12-2010
Hello,
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?
thanks
Jani
___
vala-list mailing list
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
On Tue, 2010-12-07 at 00:34 +0100, Aleksander Wabik wrote:
Seems like https://bugzilla.gnome.org/show_bug.cgi?id=585847 , but it
is claimed to be fixed. Maybe some corner case?
It was fixed in master/0.11, not in 0.10. Unfortunately, the fix does
not apply to 0.10.
Jürg