[Newbies] Re: FileDirectory
Joseph Alotta
joseph.alotta at gmail.com
Wed May 25 20:14:32 UTC 2016
Hi Ron,
I get an instance of UnixFileDirectory. And there are only 6 methods for UnixFileDirectory, none of them doing what I want.
Sincerely,
Joe.
> 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]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://forum.world.st/FileDirectory-tp4897377p4897389.html
> To start a new topic under Squeak - Beginners, email ml-node+s1294792n107673h12 at n4.nabble.com
> To unsubscribe from Squeak - Beginners, click here.
> NAML
--
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...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20160525/3d67c634/attachment-0001.htm
More information about the Beginners
mailing list