Added method for getting a list of entries

Excluding directories.