public static void SaveFilesToIsoStore(string rootDir, bool cover = false) { //These files must match what is included in the application package, //or BinaryStream.Dispose below will throw an exception. //string[] files = Directory.GetFiles("Assets/ueditor"); var fileAccess = new FileAccessUtils(); var files = fileAccess.GetAllFileName(rootDir); using (var isoStore = IsolatedStorageFile.GetUserStoreForApplication()) { foreach (var file in files) { if (cover) { performSave(file); } else { if (!isoStore.FileExists(file)) { performSave(file); } } } } }