Now that I give a directory as a separate arg, FileIO works all the way.