Implemented the directory rename web API