Helper function for directories in service providers