##// END OF EJS Templates
posix: fix test-permissions regression
posix: fix test-permissions regression

File last commit:

r25660:328739ea default
r26889:1aa5083c 3.6.1 stable
Show More
readlink.py
13 lines | 245 B | text/x-python | PythonLexer
#!/usr/bin/env python
import errno, os, sys
for f in sys.argv[1:]:
try:
print f, '->', os.readlink(f)
except OSError as err:
if err.errno != errno.EINVAL:
raise
print f, 'not a symlink'
sys.exit(0)