modified: edit scratch file func.
Signed-off-by: kangliang.zkl <kangliang.zkl@alibaba-inc.com>