I looked up in the help for this and I can't figure it out. I want to check if the current directory is read only:

this is what I tried:

[VBA]If CurDir.GetAttr.vbReadOnly = True Then
MsgBox "Test"
End If[/VBA]