Function sortery::tools::sort::is_sortable [−][src]
fn is_sortable(
path: &File,
exclude_type: &(&str, bool),
only_type: &(&str, bool)
) -> bool
Expand description
Return true
if:
path
’s type is inonly_type.0
andonly_type.1
istrue
path
’s type is not inexclude_type.0
, andonly_type.1
isfalse
“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.