require('uxp').storage.modes

modes()

This namespace describes the file open modes. for eg: open file in read-only or both read-write

readOnly : Symbol

The file is read-only; attempts to write will fail.

readWrite : Symbol

The file is read-write.