示例#1
0
        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);
                }
            }
        }