3pin_image_file_services/display_image_file/FileLoader.pde
File[] listFiles(String dir) {                //taken from http://processing.org/learning/topics/directorylist.html
  File file = new File(dir);
  if (file.isDirectory()) {
    File[] files = file.listFiles();
    return files;
  } else {
    // If it's not a directory
    println("This is not a valid file directory");
    return null;
  }
}
