# How do I know if I have Full Disk Access on Mojave or not?

**URL:** <https://forum.xojo.com/t/how-do-i-know-if-i-have-full-disk-access-on-mojave-or-not/47724>\
**Category:** macOS\
**Created:** [March 14, 2019, 2:13pm UTC](https://forum.xojo.com/t/how-do-i-know-if-i-have-full-disk-access-on-mojave-or-not/47724 "2019-03-14T14:13:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [March 14, 2019, 2:13pm UTC](https://forum.xojo.com/t/how-do-i-know-if-i-have-full-disk-access-on-mojave-or-not/47724/1 "2019-03-14T14:13:27Z")

</div>

The code doing something with the files in the Mail folder of course knows if there are files or not. But this is in a thread. So I want to know earlier if I can execute the code or if I need to show the explainer window.

First try

`dim MailFolder as FolderItem = SpecialFolder.Library.Child("Mail")
if MailFolder.Count = 0 then`

Count is always 0 for the main folder even if I have Full Disk Access.

Next try:

`dim f as FolderItem = GetFolderItem("/Users/beatrixwillius/Library/Mail/V6", FolderItem.PathTypeShell)
dim child as FolderItem = f.Item(1)`

Here I get child.Nativepath = f.Nativepath if there is no Full Disk Access. Is this to be expected or is this crazy? Is there a check that is more sane?

Xojo 2018r3 on the latest Mojave beta.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:35pm UTC](https://forum.xojo.com/t/how-do-i-know-if-i-have-full-disk-access-on-mojave-or-not/47724/2 "2020-10-29T19:35:03Z")

</div>


