@expose("file-size", [values.W_Object])
def file_size(obj):
    if not is_path_string(obj):
        raise SchemeException("file-size: expected path string")
    path = extract_path(obj)
    try:
        size = os.path.getsize(path)
    except __HOLE__:
        raise SchemeException("file-size: file %s does not exists" % path)

    intsize = intmask(size)
    if intsize == size:
        return values.W_Fixnum(intsize)
    return values.W_Bignum(rbigint.fromrarith_int(size))
dataset/ETHPy150Open samth/pycket/pycket/prims/input_output.py/file_size