In python, how can I check if a path is a symbolic link?

In python, how can I check if a path is a symbolic link? I am sure that this is due to the os package, but my search for the documentation text did not return any results. I am using version 2.7 now.

+4
source share
1 answer

Close but no cigar. You want the os.path module . Check os.path.islink() .

+8
source

Source: https://habr.com/ru/post/1395135/


All Articles