comments
authorClaus Gittinger <cg@exept.de>
Wed, 02 Feb 2000 13:15:50 +0100
changeset 5226 49955e61788f
parent 5225 d74b4c895376
child 5227 73a2dc34cb42
comments
Filename.st
--- a/Filename.st	Tue Feb 01 22:52:44 2000 +0100
+++ b/Filename.st	Wed Feb 02 13:15:50 2000 +0100
@@ -2582,6 +2582,10 @@
     ] valueNowOrOnUnwindDo:[s close].
     ^ contents
 
+    "
+     'Makefile' asFilename contents
+    "
+
     "Modified: / 2.7.1996 / 12:49:45 / stefan"
     "Created: / 11.7.1996 / 14:09:11 / cg"
     "Modified: / 15.10.1998 / 11:41:45 / cg"
@@ -2602,6 +2606,10 @@
     ] valueNowOrOnUnwindDo:[s close].
     ^ contents
 
+    "
+     'Makefile' asFilename contentsOfEntireFile
+    "
+
     "Modified: / 2.7.1996 / 12:49:45 / stefan"
     "Modified: / 15.10.1998 / 11:42:05 / cg"
 !
@@ -2611,7 +2619,9 @@
      This excludes any entries for '.' or '..'.
      Returns nil for non-existing directories; however, this behavior
      may be changed in the near future, to raise an exception instead.
-     So users of this method better test for existing directory before."
+     So users of this method better test for existing directory before.
+     Notice: this returns the file-names as strings; see also
+     #directoryContentsAsFilenames, which returns fileName objects."
 
     |s contents|
     s := DirectoryStream directoryNamed:(self osNameForDirectoryContents).
@@ -2638,7 +2648,9 @@
      This excludes any entries for '.' or '..'.
      Returns nil for non-existing directories; however, this behavior
      may be changed in the near future, to raise an exception instead.
-     So users of this method better test for existing directory before."
+     So users of this method better test for existing directory before.
+     Notice: this returns the file-names as fileName objects; see also
+     #directoryContents, which returns strings."
 
     |names|
 
@@ -2661,7 +2673,9 @@
      This excludes entries for '.' or '..'.
      NoOp for non-existing directories; however, this behavior
      may be changed in the near future, to raise an exception instead.
-     So users of this method better test for existing directory before."
+     So users of this method better test for existing directory before.
+     Notice: this enumerates fileName objects; see also
+     #directoryContentsDo:, which enumerates strings."
 
     self directoryContentsAsFilenames do:aBlock.
 
@@ -2681,7 +2695,9 @@
      This excludes entries for '.' or '..'.
      NoOp for non-existing directories; however, this behavior
      may be changed in the near future, to raise an exception instead.
-     So users of this method better test for existing directory before."
+     So users of this method better test for existing directory before.
+     Notice: this enumerates strings; see also
+     #directoryContentsDo:, which enumerates fileName objects."
 
     self directoryContents do:aBlock.
 
@@ -3598,6 +3614,6 @@
 !Filename class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.179 2000-01-24 22:48:06 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.180 2000-02-02 12:15:50 cg Exp $'
 ! !
 Filename initialize!