On Tue, 6 Aug 2019 at 12:05, ducasse <stepharo@netcourrier.com> wrote:
On 6 Aug 2019, at 12:01, Alistair Grant <akgrant0710@gmail.com> wrote:
Hi Stef,
On Fri, 2 Aug 2019 at 09:19, ducasse <stepharo@netcourrier.com> wrote:
It would be good to encapsulate this behavior may be with double dispatch with the platform. Else clients end up to be forced to check.
Why do you think this might need double dispatch?
I thought that it is specific and different on each platform.
My idea was that it can be added to FileSystemDirectoryEntry and subclasses (FileReference is already fairly heavily loaded, and should be kept to the basic, platform common attributes). The main reason I didn't was because most of the attributes are windows specific, and I was focusing on getting the basic behaviour working and integrated.
Adding just this attribute is fairly simple. I'll submit a PR soon(ish).
You see as a user I would like to be able to write.
aFileReference allHiddenFiles
and do not care that Iâm on windows or mac but this is probably too naive.
Something like this will work: aDirectoryFileReference entries select: [ :each | each isHidden ] Cheers, Alistair