gettingstarted
[Top] [All Lists]

Re: Ignoring invisible files

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Ignoring invisible files
From: Arnaud Nicolet <arnaud at tribu dot ch>
Date: Wed, 24 Jan 2007 21:51:26 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <33cbfa100701241241p10d56580v975690aa0d2916c6 at mail dot gmail dot com>

Le 24 janv. 07 à 21:41 Soir, Lars Jensen a écrit:

Function isVisible(Extends f As FolderItem) As Boolean

Implementation note: Even if I am running on Windows or Mac Classic, I
generally find it useful to check for Mac OS X style invisibility as
described in this thread. In the mixed-platform networks that are my
usual haunts, a filename that starts with a period is very likely to
be a remnant of Mac OS X access to that network folder, and not
something I want to show in the user interface of whatever tool I am
writing.

So instead of the IsVisible function above, my function looks like this:

 Function IsHidden(extends f as folderItem, CrossPlatform as boolean
= true) as boolean

Inside this function, I don't use platform-specific compilation;
instead I check the CrossPlatform argument to decide which tests to
perform. This allows me to offer it as a runtime option for the user,
appropriate.

That's a great idea.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>