'Get the number of hardlinks for the filepath - if the number of
hardlinks is not yet implemented (say in Windows), just return 0 since
stat-ing a file in Windows seems to return C{st_nlink=0}.
(Reference:
U{http://stackoverflow.com/questions/5275731/os-stat-on-windows})
@param fp: L{twisted.python.filepath.FilePath}
@return: C{int} representing the number of hardlinks'

def _stat_hardlinks(self, fp):

    try:
        return fp.getNumberOfHardLinks()
    except NotImplementedError:
        return 0
