public void WriteManyFiles()
        {
            fileIOManager.Begin();

            // generate a large dictionary
            var dict = new Dictionary <string, object>();

            var largeArray = new int[10000];

            for (int i = 0; i < largeArray.Length; i++)
            {
                largeArray[i] = i;
            }

            dict["large_array"] = largeArray;


            if (!System.IO.Directory.Exists(path))
            {
                System.IO.Directory.CreateDirectory(path);
            }


            // write lots of JSON files
            int n = 100;

            for (int i = 0; i < n; i++)
            {
                string        fileName = string.Format("{0:000}.json", i);
                WriteFileInfo fileInfo = new WriteFileInfo(WriteFileType.Test, path, fileName);
                Debug.LogFormat("Queueing {0}", fileName);
                fileIOManager.ManageInWorker(() => fileIOManager.WriteJson(dict, fileInfo));
            }

            fileIOManager.End();

            // cleanup files
            var files = System.IO.Directory.GetFiles(path, "*.json");

            foreach (var file in files)
            {
                System.IO.File.Delete(file);
            }
        }