def _is_bad_path(path, base):
 return (not resolved(joinpath(base, path)).startswith(base))

def _is_bad_path ( path , base ) : return ( not resolved ( joinpath ( base , path ) ) . startswith ( base ) )
is path outside base? .