private void RemoveDeletedFolders(DecoupledStorage storage) { if (storage == null) { return; } for (int i = 0; i < Folders.Count; i++) { CommandKeyFolder lFolder = (CommandKeyFolder)Folders[i]; if (lFolder.IsDeleted) { storage.DeleteFolder(lFolder.TreePath.Trim(STR_PathSeparator[0])); } else { lFolder.RemoveDeletedFolders(storage); } } }