listfiles function

List files in a directory