Return File object instead of String from list-dir

Returning the File object means full path info is available instead of just the name and also prevents unnecessary String to File conversions when chaining functions.