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