Determine if a volume is mounted on OS X with "Ignore ownership on this volume" set

HI Folks,

Is there a FolderItem property that will tell us that a volume has been mounted on an OS X system with the “Ignore ownership on this volume” flag set? Standard Xojo or MBS solution are both fine.

Thanks,
Tim

After digging through the available resources, I’ve determined that there is nothing available at this time to check this in the framework or MBS. Therefore, I’ve created the following extension method:

Function IgnoreOwner(Extends theVolume As FolderItem) As Boolean
  Dim theShell As New Shell
  
  #If TargetWin32
    Return False
  #else // works for OS X and Linux
    theShell.Execute "mount | grep """ + theVolume.DisplayName + """ | grep noowners"
    If theShell.ErrorCode = 0 Then
      Return True
    Else
      Return False
    End If
  #endif
End Function

As an associated method, I also need to notice if a volume is not browsable. This one handles that state:

Function IsBrowsable(Extends theVolume As FolderItem) As Boolean
  Dim theShell As New Shell
  
  #If TargetMacOS // this doesn't apply to Linux or Windows.
    theShell.Execute "mount | grep """ + theVolume.DisplayName + """ | grep nobrowse"
    If theShell.ErrorCode = 0 Then
      Return False
    Else
      Return True
    End If
  #Else
    Return False
  #endif
End Function