rename directory api documented