HIVE-2208: create a new API in Warehouse where the root directory is specified (namit via He Yongqiang)