durr, os.path.isdir == True for symlinks :facepalm: