Show More
@@ -725,6 +725,12 b' def checksymlink(path):' | |||
|
725 | 725 | except OSError: |
|
726 | 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 | 734 | # Platform specific variants |
|
729 | 735 | if os.name == 'nt': |
|
730 | 736 | import msvcrt |
General Comments 0
You need to be logged in to leave comments.
Login now