Generation

generate functionThu, 23 Feb 2023

find out if a file name is a symbolic link

def is_link(filename): return os.path.islink(filename) is_link('/path/') # False is_link('/path/link.txt') # True

Questions about programming?Chat with your personal AI assistant