Ah, I thought you were suggesting making the whole function synchronous somehow. I had used the map so that the file names were passed to the callback and I didn't need to store them somewhere, but this ended up a lot cleaner in other areas (less nested callbacks...)

86516b94bd7557698a5ee3953cd0c3219a7a2672