[Newbies] Re: FileDirectory
joseph.alotta at gmail.com
Wed May 25 20:14:32 UTC 2016
I get an instance of UnixFileDirectory. And there are only 6 methods for UnixFileDirectory, none of them doing what I want.
> On May 25, 2016, at 2:43 PM, Ron Teitelbaum [via Smalltalk] <ml-node+s1294792n4897389h8 at n4.nabble.com> wrote:
> Hi Joe,
> The hardest part of FileDirectory is understanding default.
> So start with: FileDirectory default.
> Note that default is on the class side. Once you inspect that you are now
> on the instance side. Have a look at the categories #enumeration, #'file
> status', and #'file operations', and #'file name utilities'
> when you get a file from that instance you are no longer on FileDirectory.
> What class are the file entries?
> Let me know if that helps.
> All the best,
> Ron Teitelbaum
> > -----Original Message-----
> > From: [hidden email] [mailto:beginners-
> > [hidden email]] On Behalf Of Joseph Alotta
> > Sent: Wednesday, May 25, 2016 3:22 PM
> > To: [hidden email]
> > Subject: [Newbies] FileDirectory
> > Greetings,
> > I am looking for some documentation or snippets of code for using the
> > FileDirectory class.
> > I want to check if a file exists before I try to read it.
> > I also want to look at a list of files in the directory.
> > I did search SBE and google but found nothing.
> > Sincerely,
> > Joe.
> > _______________________________________________
> > Beginners mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
> Beginners mailing list
> [hidden email]
> If you reply to this email, your message will be added to the discussion below:
> To start a new topic under Squeak - Beginners, email ml-node+s1294792n107673h12 at n4.nabble.com
> To unsubscribe from Squeak - Beginners, click here.
View this message in context: http://forum.world.st/FileDirectory-tp4897377p4897398.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners