def can_edit_file(path):
    """Checks if a file can be opend in write mode.

    :param path: The path to the file.
    :return True if it is possible to write on the file, False otherwise.
    """
    can_edit = True
    try:
        fp = open(path, 'a')
        fp.close()
    except IOError:
        can_edit = False
    return can_edit
