(path)
return stat.S_ISLNK(st.st_mode)
Test whether a path is a symbolic link.
    This will always return false for Windows prior to 6.0
    and for OS/2.
Test whether a path is a symbolic link.
    This will always return false for Windows prior to 6.0
    and for OS/2.
Test whether a path is a symbolic link . This will always return false for Windows prior to 6 . 0 and for OS / 2 .
def islink(path):
    """Test whether a path is a symbolic link.
    This will always return false for Windows prior to 6.0
    and for OS/2.
    """
    try:
        st = os.lstat(path)
    except (os.error, AttributeError):
        return False
    return stat.S_ISLNK(st.st_mode)
def islink ( path ) : try : st = os . lstat ( path ) except ( os . error , AttributeError ) : return False return stat . S_ISLNK ( st . st_mode )