add getFilePath function and test pass
delete useless exception