<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Joe,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Excellent.&nbsp; Remember that you should also look at the super classes for methods.&nbsp; UnixFileDirectory is the instance of &#8220;FileDirectory default&#8221; but it&#8217;s also a subclass of FileDirectory so the methods you can call include UnixFileDirectory and all the methods on the class hierarchy including the methods on FileDirectory.&nbsp; Please see the method categories on FileDirectory that I mentioned.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The question I asked was a bit different.&nbsp; When you ask for the #entries of the instance &#8220;FileDirectory default&#8221; what class is each file?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>By the way, based on the question you asked there is a method on FileDirectory to determine if the file exists before you read it (it&#8217;s in the method categories I pointed out to you).&nbsp; What is that method?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>All the best,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ron Teitelbaum&nbsp; &nbsp;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> beginners-bounces@lists.squeakfoundation.org [mailto:beginners-bounces@lists.squeakfoundation.org] <b>On Behalf Of </b>Joseph Alotta<br><b>Sent:</b> Wednesday, May 25, 2016 4:15 PM<br><b>To:</b> beginners@lists.squeakfoundation.org<br><b>Subject:</b> [Newbies] Re: FileDirectory<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi Ron, <br><br>I get an instance of UnixFileDirectory. &nbsp;And there are only 6 methods for UnixFileDirectory, none of them doing what I want. <br><br>Sincerely, <br><br>Joe. <br><br><br><o:p></o:p></p><div><p class=MsoNormal><br>&gt; On May 25, 2016, at 2:43 PM, Ron Teitelbaum [via Smalltalk] &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=4897398&amp;i=0" target="_top">[hidden email]</a>&gt; wrote: <br>&gt; <br>&gt; Hi Joe, <br>&gt; <br>&gt; The hardest part of FileDirectory is understanding default. <br>&gt; <br>&gt; So start with: FileDirectory default. <br>&gt; <br>&gt; Note that default is on the class side. &nbsp;Once you inspect that you are now <br>&gt; on the instance side. &nbsp;Have a look at the categories #enumeration, #'file <br>&gt; status', and #'file operations', and #'file name utilities' &nbsp; <br>&gt; <br>&gt; when you get a file from that instance you are no longer on FileDirectory. <br>&gt; What class are the file entries? <br>&gt; <br>&gt; Let me know if that helps. <br>&gt; <br>&gt; All the best, <br>&gt; <br>&gt; Ron Teitelbaum <br>&gt; <br>&gt; <br>&gt; <br>&gt; &gt; -----Original Message----- <br>&gt; &gt; From: [hidden email] [mailto:beginners- <br>&gt; &gt; [hidden email]] On Behalf Of Joseph Alotta <br>&gt; &gt; Sent: Wednesday, May 25, 2016 3:22 PM <br>&gt; &gt; To: [hidden email] <br>&gt; &gt; Subject: [Newbies] FileDirectory <br>&gt; &gt; <br>&gt; &gt; Greetings, <br>&gt; &gt; <br>&gt; &gt; I am looking for some documentation or snippets of code for using the <br>&gt; &gt; FileDirectory class. <br>&gt; &gt; <br>&gt; &gt; I want to check if a file exists before I try to read it. <br>&gt; &gt; <br>&gt; &gt; I also want to look at a list of files in the directory. <br>&gt; &gt; <br>&gt; &gt; I did search SBE and google but found nothing. <br>&gt; &gt; <br>&gt; &gt; Sincerely, <br>&gt; &gt; <br>&gt; &gt; Joe. <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; _______________________________________________ <br>&gt; &gt; Beginners mailing list <br>&gt; &gt; [hidden email] <br>&gt; &gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>&gt; <br>&gt; _______________________________________________ <br>&gt; Beginners mailing list <br>&gt; [hidden email] <br>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>&gt; <br>&gt; <br>&gt; If you reply to this email, your message will be added to the discussion below: <br>&gt; <a href="http://forum.world.st/FileDirectory-tp4897377p4897389.html" target="_top">http://forum.world.st/FileDirectory-tp4897377p4897389.html</a><br>&gt; To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&amp;node=4897398&amp;i=1" target="_top">[hidden email]</a> <br>&gt; To unsubscribe from Squeak - Beginners, click here. <br>&gt; NAML <o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div class=MsoNormal><hr size=3 width=300 style='width:2.5in' align=left></div><p class=MsoNormal>View this message in context: <a href="http://forum.world.st/FileDirectory-tp4897377p4897398.html">Re: FileDirectory</a><br>Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at Nabble.com.<o:p></o:p></p></div></div></body></html>