Add basic functionality to ignore directories when listing files