Did you know ... | Search Documentation: |
![]() | Predicate file_base_name/2 |
/*([^/]*)/*$
, now capturing the non-/
segment. If the segment is empty it unifies File with /
if Path starts with /
and the empty
atom (''
) otherwise. The behaviour is consistent with the
POSIX basename program.143Before
SWI-Prolog 7.7.13, if argPath ended with a /
File
was unified with the empty atom.