rex.utilities.utilities.assert_read_only_mode

assert_read_only_mode(mode, service='HSDS')[source]

Throw error if attempting to use non-read mode

Parameters:
  • mode (str) – File open mode requested by user.

  • service (str, default=”HSDS”) – Optional name of remote service being used for more descriptive error message.