Function sortery::tools::sort::is_sortable [−][src]
fn is_sortable(
path: &File,
exclude_type: &(&str, bool),
only_type: &(&str, bool)
) -> boolExpand description
Return true if:
path’s type is inonly_type.0andonly_type.1istruepath’s type is not inexclude_type.0, andonly_type.1isfalse
“Type” refers to the file extension, as in "jpg", "png", etc. exclude_type
and only_type correspond with exclude_type and only_type in get_sorting_results,
respectively.