HOW TO: read all files in a directory

In unix-based systems, a directory is really just a different type of file. If you create a File object out of a “path/to/some/files” there is an easy way to get a listing of all the files in an array.
WARNING: there are such things as “hidden files.” Hidden files begin with a ‘dot’ (.). For example, [...]