def is_broken_link(path):
 path = os.readlink(path)
 return (not os.path.exists(path))

def is_broken_link ( path ) : path = os . readlink ( path ) return ( not os . path . exists ( path ) )
returns true if the path given as is a broken symlink .