creating json file of files in a given folder appears to be working (no
tests yet)