python里判断文件是否为link:

排除link文件(False首字母要大写,True也一样):

if os.path.islink(os.path.join(root,f)) == False: