[squeak-dev] The Trunk: Files-eem.135.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun May 11 16:54:16 UTC 2014
Eliot Miranda uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-eem.135.mcz
==================== Summary ====================
Name: Files-eem.135
Author: eem
Time: 11 May 2014, 9:54:00.651 am
UUID: 6a73aad1-8897-492c-8e2b-8eb2036eed8c
Ancestors: Files-eem.134
Implement FileDirectory>>includesKey: in terms of
directoryEntryForName: instead of the slooooow
fileAndDirectoryNames.
Not least this finesses the issue of having a case-sensitive
file system on Mac OS (which is an option).
=============== Diff against Files-eem.134 ===============
Item was changed:
----- Method: FileDirectory>>includesKey: (in category 'testing') -----
includesKey: localName
"Answer true if this directory includes a file or directory of the given name. Note that the name should be a local file name, in contrast with fileExists:, which takes either local or full-qualified file names."
"(FileDirectory on: Smalltalk vmPath) includesKey: 'SqueakV2.sources'"
+ ^(self directoryEntryForName: localName) notNil!
- self isCaseSensitive
- ifTrue:[^ self fileAndDirectoryNames includes: localName]
- ifFalse:[^ self fileAndDirectoryNames anySatisfy: [:str| str sameAs: localName]].!
More information about the Squeak-dev
mailing list
|