[Pkg] Rio: File-Base-kph.16.mcz
squeak-dev-noreply at lists.squeakfoundation.org
squeak-dev-noreply at lists.squeakfoundation.org
Sat Feb 28 06:42:06 UTC 2009
A new version of File-Base was added to project Rio:
http://www.squeaksource.com/Rio/File-Base-kph.16.mcz
==================== Summary ====================
Name: File-Base-kph.16
Author: kph
Time: 28 February 2009, 6:42 am
UUID: e6d54b7e-0562-11de-9b6f-000a95edb42a
Ancestors: File-Base-kph.15
addTree: now accepts a directory or a list.
=============== Diff against File-Base-kph.15 ===============
Item was changed:
----- Method: Directory>>addTree: (in category 'directory/container actions') -----
addTree: aDir
"this adds all the contents of aDir to the directory, not aDir itself"
+ | list |
self validateIsContainer.
+
+ list := aDir isCollection ifTrue: [ aDir ] ifFalse: [ Array with: aDir ].
- aDir validateIsDirectory.
+ list do: [ :ea |
+
+ self addAll: (ea all entries; addFirst: ea; yourself) relativeTo: ea parent.
- ^ self addAll: (aDir all entries) relativeTo: aDir.
+ ].
+
!
More information about the Packages
mailing list