def get_time(path: 'Union[str, PathLike, stat_result]'):
    try:
        if (not isinstance(path, stat_result)):
            res = stat(path)
        else:
            res = path
        return {'st_ctime': int(res.st_ctime), 'st_mtime': int(res.st_mtime), 'st_atime': int(res.st_atime)}
    except OSError:
        now = int(time.time())
        return {'st_ctime': now, 'st_mtime': now, 'st_atime': now}
def get_time(path: 'Union[str, PathLike, stat_result]'):
    try:
        if (not isinstance(path, stat_result)):
            res = stat(path)
        else:
            res = path
        return {'st_ctime': int(res.st_ctime), 'st_mtime': int(res.st_mtime), 'st_atime': int(res.st_atime)}
    except OSError:
        now = int(time.time())
        return {'st_ctime': now, 'st_mtime': now, 'st_atime': now}