SELECT distinct dirname FROM DOCUMENTS
WHERE parentDir = $dirname;