##// END OF EJS Templates
symlinks: add a linkfunc
Matt Mackall -
r4000:3297aa94 default
parent child Browse files
Show More
@@ -725,6 +725,12 b' def checksymlink(path):'
725 except OSError:
725 except OSError:
726 return False
726 return False
727
727
728 def linkfunc(path, fallback):
729 '''return an is_link() function with default to fallback'''
730 if checklink(path):
731 return lambda x: is_link(os.path.join(path, x))
732 return fallback
733
728 # Platform specific variants
734 # Platform specific variants
729 if os.name == 'nt':
735 if os.name == 'nt':
730 import msvcrt
736 import msvcrt
General Comments 0
You need to be logged in to leave comments. Login now