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: [email protected] [mailto:beginners-
> [email protected]] On Behalf Of Joseph Alotta
> Sent: Wednesday, May 25, 2016 3:22 PM
> To: [email protected]
> 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
> [email protected]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to