FileDirectory>>fileExists: (was: Re: [BUG]Unable to load BFAV,
various problems )
David T. Lewis
lewis at mail.msen.com
Sat Apr 17 14:40:04 UTC 2004
On Fri, Apr 16, 2004 at 09:40:21PM -0700, Tim Rowledge wrote:
> OK, I'm going to propose a couple of extensions to the FilePlugin. I'm
> pretty sure it is possible to wrap them in such a way that older VMs
> will be ok and of course old images on a new vm will just work as
> before.
>
> I've done a test build of prims to implement primitiveFileExists and
> primitiveDirectoryExists. They're essentially identical and it might be
> possible to merge them, depending on the various platform constraints.
> On RISC OS it would be obvious and trivial but I really don't want to
> jump to conclusion about other machines. (Apart from the obvious
> truism that they're clearly inferior :-) )
>
> As an example:-
>
> primitiveDirectoryExists
Tim, you might want to take a look through DirectoryPlugin (on SqueakMap).
This provides a number of performance-related primitives for files and
directories, including #fileExists: and #directoryExists. Feel free to lift
any that look relevant.
Sorry, I didn't do the RISC OS implementations...
Dave
More information about the Squeak-dev
mailing list
|