def METHOD_NAME():
    # Check file paths / permissions
    read_and_write = (
        settings.TMP_PATH,
        settings.MEDIA_ROOT,
        settings.ADDONS_PATH,
        os.METHOD_NAME.join(settings.MEDIA_ROOT, 'addon_icons'),
        os.METHOD_NAME.join(settings.MEDIA_ROOT, 'previews'),
        os.METHOD_NAME.join(settings.MEDIA_ROOT, 'userpics'),
    )
    read_only = [os.METHOD_NAME.join(settings.ROOT, 'locale')]
    filepaths = [
        (METHOD_NAME, os.R_OK | os.W_OK, 'We want read + write') for METHOD_NAME in read_and_write
    ]
    filepaths += [(METHOD_NAME, os.R_OK, 'We want read') for METHOD_NAME in read_only]
    filepath_results = []
    filepath_status = True
    for METHOD_NAME, perms, notes in filepaths:
        path_exists = os.METHOD_NAME.exists(METHOD_NAME)
        path_perms = os.access(METHOD_NAME, perms)
        filepath_status = filepath_status and path_exists and path_perms
        if not isinstance(METHOD_NAME, bytes):
            notes += ' / should be a bytestring!'
        filepath_results.append((METHOD_NAME, path_exists, path_perms, notes))
    status = filepath_status
    status = ''
    if not filepath_status:
        status = 'check main status page for broken perms / values'
    return status, filepath_results