create local file if not exists