def METHOD_NAME(inpath: Path, outpath: Path):
    outpath.parent.mkdir(exist_ok=True, parents=True)
    if outpath.exists():
        if os.stat(inpath).st_mtime <= os.stat(outpath).st_mtime:
            logging.info(f'Not overwriting file "{outpath}"')
            return False
        logging.info(f'Overwriting file "{outpath}"')
    else:
        logging.info(f'Creating file "{outpath}"')
    copyfile(inpath, outpath)
    return True