Adds listFiles helper function to Filesystem