<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body >Hi Charles,<div><br></div><div>No Squeak handy but there is a allfilesinalldirectories. This will give you all files in all subfolders. Tonight I will look up the real name but you may be able to find it in FileStream or similar yourself.&nbsp;</div><div><br></div><div>Cheers</div><div>Herbert</div><br><br><br>-------- Ursprüngliche Nachricht --------<br>Von: Charles Hixson &lt;charleshixsn@earthlink.net&gt; <br>Datum: 21.10.2013  9:14  (GMT+01:00) <br>An: beginners@lists.squeakfoundation.org <br>Betreff: [Newbies] Walk directory of files? <br> <br><br>What is the best way to walk a directory of files?<br>It would be nice is I could just:<br>Get next file?<br>exitst?&nbsp; ifFalse then done<br>match pattern?&nbsp; ifFalse, then go to first step<br>return file<br><br>This requires that the method track where I am.&nbsp; I think I can figure <br>out how to stuff them into a collection, and return the entire <br>collection of matched files, and perhaps that's the right answer, but <br>that's not the way I would do it in Python or Ruby, so perhaps it's also <br>not the way to do it in Smalltalk.<br><br>Also, if it matters, the files will be utf-8 files, many of them with <br>BOMs. (Well, not really BOMs, since it's utf8, but the utf8 header.)&nbsp; <br>Does Squeak recognize BOM headers?<br><br>-- <br>Charles Hixson<br><br>_______________________________________________<br>Beginners mailing list<br>Beginners@lists.squeakfoundation.org<br>http://lists.squeakfoundation.org/mailman/listinfo/beginners<br></body>