Make sure the filereadble() before get parent dir