I couldn't resist: this loop is the same as `return any(s.startswith('.') for s in path.split(os.sep))` :)