tests/readlink.py
author Mads Kiilerich <madski@unity3d.com>
Thu, 13 Dec 2012 19:19:06 +0100
changeset 18156 0e68a3c11295
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
largefiles: better test coverage of wireproto and the http protocol

#!/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)