[Cuis] (FileDirectory default directoryContentsFor: '') is moby confused

Ken Dickey Ken.Dickey at whidbey.com
Mon Jun 2 09:34:32 CDT 2014


On Mon, 02 Jun 2014 10:45:59 -0300
Juan Vuletich <juan at jvuletich.org> wrote:

> On 02/06/2014 10:35 a.m., Ken Dickey wrote:
..
> > BTW
> >    (FileDirectory default directoryContentsFor: '/')
> > also gives me DirEntries with root file names but the Cuis image directory.
> >
> 
> Oh, I wasn't aware of that! In Windows, FileDirectory default 
> directoryContentsFor: '' also gives root entries (disk volume names), 
> but in the Cuis image directory. Really messy.
> 
> Makes me wonder... Maybe it is time to move on to FileSystem, as Pharo 
> did? Anyone took a close look at it, or have an opinion or thoughts?

BTW, Squeak 4.5 has the same bug.


I suggest that
  FileDirectory default directoryContentsFor: ''
should give the same result as
  FileDirectory entries

And that the pathname handed to 
  #FileDirectory>>directoryContentsFor:
be checked/expanded to be a valid full path name

$0.02 
-KenD




More information about the Cuis mailing list