Talk:Walk a directory/Recursively: Difference between revisions

Someone want to clarify the task description?
No edit summary
(Someone want to clarify the task description?)
Line 12:
----
 
Is the problem to just find filenames, excluding the path, that match the pattern? That's usually the example, and in that case, many of the snippets here have bugs because they apply the regex to the entire path, not just the filename. ''(Unsigned comment added by 69.211.121.158 at 22:21, 24 October 2010 69.211.121.158))''
: Does someone want to clarify the task description? If we're walking a directory tree, we would normally be considering entries within each directory we examine. It may also be worthwhile setting up an example directory structure with anticipated results. (Particularly considering things like matches against directory names, such as a search for \*\.txt, and there being a 'files.txt' directory in the tree.) --[[User:Short Circuit|Michael Mol]] 13:09, 25 October 2010 (UTC)