update the directory for the new item