add func for extract file name from path

add func for extract file name from path, break when get target