FolderItem.Locked

From Xojo Documentation

Property (As Boolean )
aFolderItem.Locked = newBooleanValue
or
BooleanValue = aFolderItem.Locked

Supported for all project types and targets.

The FolderItem is locked or resides on a locked volume.

Example

Var f As New FolderItem
f = FolderItem.ShowOpenFileDialog("text/plain")

If f.Locked Then
MessageBox("The file is locked!")
Else
// access the file
End If