mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
13 lines
231 B
Python
13 lines
231 B
Python
|
#!/usr/bin/env python
|
||
|
|
||
|
import errno, os, sys
|
||
|
|
||
|
for f in sys.argv[1:]:
|
||
|
try:
|
||
|
print f, '->', os.readlink(f)
|
||
|
except OSError, err:
|
||
|
if err.errno != errno.EINVAL: raise
|
||
|
print f, 'not a symlink'
|
||
|
|
||
|
sys.exit(0)
|