The Trunk: Files-tpr.173.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Files-tpr.173.mcz

commits-2
tim Rowledge uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-tpr.173.mcz

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

Name: Files-tpr.173
Author: tpr
Time: 15 November 2017, 3:10:56.694097 pm
UUID: 08650899-ae87-4c7d-8e87-258416826dc5
Ancestors: Files-ul.172

Add fileEntries and directoryEntries to return the actual entry objects; useful in some places wher fileNames/directoryNames + more processing might otherwise get used.

=============== Diff against Files-ul.172 ===============

Item was added:
+ ----- Method: FileDirectory>>directoryEntries (in category 'enumeration') -----
+ directoryEntries
+ "Return a collection of full entries for the subdirectories of this directory."
+ "FileDirectory default directoryEntries"
+
+ ^Array streamContents: [ :stream |
+ self entriesDo: [ :entry |
+ entry isDirectory ifTrue: [
+ stream nextPut: entry ]]]!

Item was added:
+ ----- Method: FileDirectory>>fileEntries (in category 'enumeration') -----
+ fileEntries
+ "Return a collection of the full entries for the files (but not directories) in this directory."
+ "FileDirectory default fileEntries"
+
+ ^Array streamContents: [ :stream |
+ self entriesDo: [ :entry |
+ entry isDirectory ifFalse: [
+ stream nextPut: entry ]]]!