[Pkg] Rio: File-Base-kph.23.mcz

squeak-dev-noreply at lists.squeakfoundation.org squeak-dev-noreply at lists.squeakfoundation.org
Sun Mar 8 22:51:27 UTC 2009


A new version of File-Base was added to project Rio:
http://www.squeaksource.com/Rio/File-Base-kph.23.mcz

==================== Summary ====================

Name: File-Base-kph.23
Author: kph
Time: 8 March 2009, 10:51:18 pm
UUID: a4707eb6-0c33-11de-987b-000a95edb42a
Ancestors: File-Base-kph.22

+ #pathHasNoWildCards
+ optimization to #resolveMatchOne will avoid hitting an ftp site if there is no actual matching to be done

hmm.... might not be the expected behaviour. One might assume that the result of resolveMatchOne actually exists.

=============== Diff against File-Base-kph.22 ===============

Item was changed:
  ----- Method: File>>resolveMatchOne (in category 'enumeration') -----
  resolveMatchOne
  
  	| list |
+ 	
+ 	"if we do not contain wild cards, simply return self"
+ 	self pathHasNoWildCards ifTrue: [ ^ self ].
+ 	
  	list :=self parent filesMatching: self fileName.
  	list size = 1 ifFalse: [ ^ nil ].
  	^ list first
  !

Item was added:
+ ----- Method: File>>pathHasNoWildCards (in category 'enumeration') -----
+ pathHasNoWildCards
+ 	^ ((value includes: $*) not and: [ (value includes: $#) not ]) !



More information about the Packages mailing list