bug in Directory class>>allFilesMatching:do:

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

bug in Directory class>>allFilesMatching:do:

Stefan Schmiedl

diff --git a/kernel/Directory.st b/kernel/Directory.st
index d587da3..99a9fcd 100644
--- a/kernel/Directory.st
+++ b/kernel/Directory.st
@@ -206,7 +206,7 @@ how to use the instances returned by my class methods.'>
     Directory class >> allFilesMatching: aPattern do: aBlock [
        "Invoke #allFilesMatching:do: on the current working directory."
        <category: 'file operations'>
-       (File name: self working) allFilesMatching: aPattern do: aBlock
+       (File name: self working name) allFilesMatching: aPattern do: aBlock
     ]
 
     Directory class >> create: dirName [



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: bug in Directory class>>allFilesMatching:do:

Paolo Bonzini-3
Stefan Schmiedl wrote:

> diff --git a/kernel/Directory.st b/kernel/Directory.st
> index d587da3..99a9fcd 100644
> --- a/kernel/Directory.st
> +++ b/kernel/Directory.st
> @@ -206,7 +206,7 @@ how to use the instances returned by my class methods.'>
>      Directory class >> allFilesMatching: aPattern do: aBlock [
>         "Invoke #allFilesMatching:do: on the current working directory."
>         <category: 'file operations'>
> -       (File name: self working) allFilesMatching: aPattern do: aBlock
> +       (File name: self working name) allFilesMatching: aPattern do: aBlock

Or just "self working allFilesMatching:...do:..."?

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk