GNOME Bugzilla – Bug 532562
add g_dir_read_name_stat()
Last modified: 2008-05-15 05:08:07 UTC
Hi, Florian Ragwitz reported in Debian bug http://bugs.debian.org/480497: """ glib currently provides g_dir_read_name for reading the contents of a directory. It's a quite common operation to first get a directory entry and stat() it directly afterwards. When using g_dir_read_name this currently requires you build the full path name to the directory entry using g_build_filename() (or something similar) and to call g_{,l}stat for getting the file information. This is not only unconvenient but also ineffective on platforms that provide fstatat(). The patch at http://files.perldition.org/g_dir_read_name_stat.patch implements a g_dir_read_name_stat function that reads the name of the next directory entry from a GDir, just like g_dir_read_name does, and stats if afterwards. It uses fstatat() where available. """ I'll attach this patch, Bye
Created attachment 110704 [details] [review] add g_dir_read_name_stat()
duplicate bug propagation considered harmful :-) *** This bug has been marked as a duplicate of 532501 ***