[BUG] Problem with FileDirectory>assureExistence (etc)

Tim Rowledge tim at sumeru.stanford.edu
Thu Mar 28 00:57:15 UTC 2002


In 3.2#4743 (the latest so far as I can tell) there is an infinite recursion in FileDirectory>assureExistence.

I've been able to recreate this on Acorn, Mac & unix - can't try windows.

To see the problem try the logical equivalent of:-

FileDirectory on: '/wibbly/foo'  {unix - make sure you don't actually have /wibbly!}
FileDirectory on: '<name of disk you dont have>:fooble' {Mac}
FileDirectory on: 'adfsbang::$/fooble/wiz' {Acorn - yeah right, like you have one}

The problem is that we get to the root of the faulty path and then keep repeating it; either with '' or '/' depending on the OS. I guess there needs to be some extra check for the top of the possible tree (unix) and/or faulty root names (Acorn, Mac).

I'm not sure what a really clean answer is right now and I'm a bit busy right now so I'll leave it as an entertaining exercise for some reader :-)

tim
-- 
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Strange OpCodes: DUL: Delete Utility Library




More information about the Squeak-dev mailing list