dir_add(): no need to rollback when a duplicated entry is found