Hi Ron,
> Excellent. Remember that you should also look at the super classes for
> methods. UnixFileDirectory is the instance of “FileDirectory default” but
> it’s also a subclass of FileDirectory so the methods you can call include
> UnixFileDirectory and all the methods on the class
> On May 25, 2016, at 3:38 PM, Hannes Hirzel [via Smalltalk]
> wrote:
>
> Have a look as well at http://wiki.squeak.org/squeak/2184
>
> What exactly do you want to do?
>
> —Hannes
I saw that. It comes up first on google. It is 100% accurate and
Hi Joe,
Excellent. Remember that you should also look at the super classes for
methods. UnixFileDirectory is the instance of "FileDirectory default" but
it's also a subclass of FileDirectory so the methods you can call include
UnixFileDirectory and all the methods on the class hierarchy
Have a look as well at http://wiki.squeak.org/squeak/2184
What exactly do you want to do?
--Hannes
On 5/25/16, Joseph Alotta wrote:
> Hi Ron,
>
> I get an instance of UnixFileDirectory. And there are only 6 methods for
> UnixFileDirectory, none of them doing what I
Hi Ron,
I get an instance of UnixFileDirectory. And there are only 6 methods for
UnixFileDirectory, none of them doing what I want.
Sincerely,
Joe.
> On May 25, 2016, at 2:43 PM, Ron Teitelbaum [via Smalltalk]
> wrote:
>
> Hi Joe,
>
> The
Hi Joe,
The hardest part of FileDirectory is understanding default.
So start with: FileDirectory default.
Note that default is on the class side. Once you inspect that you are now
on the instance side. Have a look at the categories #enumeration, #'file
status', and #'file operations', and
Greetings,
I am looking for some documentation or snippets of code for using the
FileDirectory class.
I want to check if a file exists before I try to read it.
I also want to look at a list of files in the directory.
I did search SBE and google but found nothing.
Sincerely,
Joe.