check if put dir name end  with ..