def METHOD_NAME(self, queryset, name, value):
    """
    Custom method to return the files that have the queried number of slashes in
    their fname property. If the queried number ends in 'u' or 'U' then only one
    file per each last "folder" in the path is returned (useful to efficiently get
    the list of immediate folders under the path).
    """
    return filter_files_by_n_slashes(queryset, value)