This will start with the rightmost path element and work backwards to the
given root to see if a path is hidden or in a hidden directory. Hidden is
determined by either name starting with ‘.’ or the UF_HIDDEN flag as
reported by stat.

Parameters:

abs_path : unicode

The absolute path to check for hidden directories.

abs_root : unicode

The absolute path of the root directory in which hidden directories
should be checked for.