pub fn convert_file_open_mode_to_option(mode: FileOpenMode) -> FileOpenOption