def touch(self, mode=<NUM_LIT>, exist_ok=True):
if self._closed:<EOL><INDENT>self._raise_closed()<EOL><DEDENT>if exist_ok:<EOL><INDENT>try:<EOL><INDENT>self._accessor.utime(self, None)<EOL><DEDENT>except OSError:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>return<EOL><DEDENT><DEDENT>flags = os.O_CREAT | os.O_WRONLY<EOL>if not exist_ok:<EOL><INDENT>flags |= os.O_EXCL<EOL><DEDENT>fd = self._raw_open(flags, mode)<EOL>os.close(fd)<EOL>
Create this file with the given access mode, if it doesn't exist.