computeFeatures for hierarchical dirs