Gets a directory and makes batches of files containing a maximum number of files AND maximum size in bytes.