Hi there, I would like to know if such function would be correct for verifying if a link is broken and/or circular.
def isvalidlink(path):
assert os.path.islink(path)
try:
os.stat(path)
except os.error:
return 1
return 0
--
http://mail.python.org/mailman/listinfo/python-list
