Is there some library function, or some other way, to get the hard link count of some file in Python?
Use st_nlink:
os.stat("foo.txt").st_nlink
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With