realbasic-nug
[Top] [All Lists]

Re: Is a volume?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Is a volume?
From: Stuart Malin <stuart at zhameesha dot com>
Date: Thu, 30 Dec 2004 21:15:15 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <77295313041230184029d21765 at mail dot gmail dot com> <ED8B01F8-5AD9-11D9-964A-000393786770 at realsoftware dot com>

On Dec 30, 2004, at 7:13 PM, Geoff Perlman wrote:

I believe that if the Parent property is nil, the folderitem is a volume.

On Dec 30, 2004, at 8:40 PM, Dave wrote:

How would I check if a folderitem is a volume?

According to the LR, Parent returns nil if the item is the root directory.

Also according to the LR, folderItem has a property "directory" which is true for a directory.

dim f as folderItem

f = ......

if f.directory = true then
        // it's a directory


~~~

I mention the LR, because I am supplying this info based upon what I am reading, and have not run a test case to verify.


_______________________________________________
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>