There is a bit of ambiguity on the docs page reference for FolderItem.Permissions. In the main documentation area, the value for permission is simply referred to as an integer value. While the text lists values of 0 through 7, it doesn’t specify the use of Octal number values until just before the example at the bottom of the page.
I recommend that this be updated to specify that the value passed must be an octal value representation in the header and description.
Feedback item: <https://xojo.com/issue/33465>