def getstat(path):
    """ returns the stat information of a file"""
    statinfo=None
    try:
        statinfo=os.lstat(path)
    except (IOError, __HOLE__) as e:   # FileNotFoundError only since python 3.3
        if args.debug:
            sys.stderr.write(str(e))
    except:
        raise
    return statinfo
dataset/ETHPy150Open FredHutch/swift-commander/swift_commander/swsymlinks.py/getstat