Talk:Walk a directory/Recursively: Difference between revisions

breaking up an advanced tree walker
No edit summary
(breaking up an advanced tree walker)
Line 6:
'''Walk a given directory tree, calling a function for every filename which matches
a given wildcard, UNIX [[glob]], or [[regex]] pattern (whichever is easiest for the given language).'''
:::Sounds fine to me. Go ahead and make the change. I'll add filling in what I know of globs and regex later.
: Question: would we want to create a small set of more complex tree walking tasks which ask how one would do things like: follow (or refrain from following) symbolic links, refrain from crossing UNIX/Linux mount points, select files based on their ''stat()'' criteria (such as link count, dates, ownership, group association, permissions, etc) or on their contents?
::I could see the components (creating/identifying symbolic links, creating hard links, getting link counts, getting create/modified dates, getting and setting file and directory ownership, getting and setting group association, getting and setting permissions and identifying mount points) as their own tasks. None of them are even UNIX-specific; Even Windows supports symbolic and hard links. But building '''find''' alternative is too complicated for your average task, or even a [[:Category:Puzzles|puzzle]]. --[[User:Short Circuit|Short Circuit]] 21:54, 16 October 2007 (MDT)
 
----