Fixed list_files to return results array

Function list_files() does not currently return the results array if the connection is successful.
Please commit the proposed change.
Merge pull request #1 from jlil/patch-1

Fixed list_files to return results array