In python, how can I test if a path is a symbolic link? I'm sure it has to do with the os package, but my searching of the documentation text didn't yield a result. I'm using version 2.7 at the moment.
Close, but no cigar. You want the os.path module. Check out os.path.islink()
.
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