now operates over entire directories