bug in File Locator isRoot

Jeff Sparkes jsparkes at gmail.com
Wed Dec 28 07:47:25 PST 2005


If you create a File Locator with a simple file name, isRoot returns
true.  I think
it should include the basePath in determining isRoot.  Is it even
possible for a
File RelativeLocator to be a root?  Further inspection shows that File
and Directory
are separate classes, so it should be impossible for a File to be root.


Slate: Growing heap to 6984568 bytes.
Nil
Slate 1>  addSlot: #f valued: ('slate.image' as: File Locator).
lobby
Slate 2> f isRoot.
True
Slate 3> f path.
{"ExtensibleArray"}
Slate 4> f.
P'slate.image'
Slate 5> f basePath.
("LogicalDirectory" parentResource: Nil. handle: Nil. readStream: Nil.
writeStream: Nil.
    locator: P'd:\src\slate\main\'. resolver: [(arity: 0)])
Slate 6>




More information about the Slate mailing list