[Pharo-project] R.I.P. FileDirectory

Chris Muller asqueaker at gmail.com
Thu Aug 2 21:29:08 CEST 2012


> - FileDirectory uses Strings as path descriptions, FileSystem uses real Objects for that.

Nope, it uses DirectoryEntry.

> - The main entry point for FileSystem is the FileReference, the old way is String + FileDirectory

No, DirectoryEntry is like a FileReference.  But some folks may prefer
just to use simple Strings in some cases.  Strings are a *real* part
of any modern filesystem domain, so you've got to deal with them at
SOME point.  And, since there is shorthand syntax for Strings
understood by the Compiler, it can actually make code *cleaner* in
some cases than having to instantiate an object model every time just
to, for example, get a list of directory contents (not to mention
allocation expense).



More information about the Pharo-project mailing list