macOS
/ binaries
/
pathchk
/usr/bin/pathchk
Check pathnames
The
pathchk
utility checks whether each of the specified pathname arguments is valid or portable.
source: man