add retry if fail;fixed fileDirPath