Re: directory traversal
- From: Paul Davis <pbd op net>
- To: Chris Wareham <chris wareham iosystems co uk>
- Cc: Jeff Abrahamson <jeff purple com>, gtk-list gtk org
- Subject: Re: directory traversal
- Date: Tue, 23 Jul 2002 08:05:21 -0400
>Paul Davis wrote:
>>>Jeff Abrahamson wrote:
>>>
>>>>I want to recursively traverse a directory. It seems dumb to write
>>>>this from scratch (and easy to goof on corner cases), but I haven't
>>>>found anything in glib / gtk / etc. that seems to address it. (Yeah,
>>>>this is more of a glib question than a gtk question, I guess.)
>>>>
>>>
>>>The following proglet exercises a function called read_directory(),
>>>which traverses a directory. I often use it as a template for other
>>>programs requiring this functionality. The section on file utility
>>>functions in the Glib documentation may be worth a read as well.
>>
>> man ftw
>>
>
>$ man ftw
>man: no entry for ftw in the manual.
>$ uname
>NetBSD
>
>I guess ftw must be some sort of SysV specific thing.
on my system, its part of glibc. i think it does come from sysv
originally, but anyone using glibc has it available. i suspect that
glib has some equivalent.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]