Added /dirs api.