Hidden in what sense?

On Linux, files whose name start with a period are "hidden" (by convention, many commands ignore them)

On OS X, files and directories that are hidden to the Finder have a special attribute in the file system. I don't think there's an accessor for that in Pharo yet, but as a workaround you can use the system command GetFileInfo to check the state of the invisibility flag (v):

GetFileInfo -a v /Applications
# should echo 0 (invisibility flag not set)

GetFileInfo -a v /bin
# should echo 1


On 9 April 2016 at 21:12, Robert J Rothwell <r.j.rothwell@gmail.com> wrote:
Hello,

Is there a way to determine if a file is hidden?�� I couldn't find that in "Deep into Pharo".

For example, I can get my desktop files with:

desktopFiles := FileLocator desktop children.

And now I would like to filter that collection to the non-hiddent files with something like:

desktopFiles select: [:each | each isHidden not ]

But there doesn't seem to be anything like "isHidden" for a FileLocator object.

Thank you,

Rob Rothwell