refactor(put) patchFile