parameters: (filename)
return_statement: return True
docstring: Touches a file; returns False on error, True on success.
docstring_summary: Touches a file; returns False on error, True on success.
docstring_tokens: Touches a file ; returns False on error True on success .
function: def _EnsureFileExists(filename):
      """Touches a file; returns False on error, True on success."""
      if not os.path.exists(filename):
          old_umask = os.umask(0o177)
          try:
              open(filename, 'a+b').close()
          except OSError:
              return False
          finally:
              os.umask(old_umask)
      return True
function_tokens: def _EnsureFileExists ( filename ) : if not os . path . exists ( filename ) : old_umask = os . umask ( 0o177 ) try : open ( filename , 'a+b' ) . close ( ) except OSError : return False finally : os . umask ( old_umask ) return True