SuperMap.WindowsPhone.Mapping.OfflineStorage.DeleteFolders C# (CSharp) Method

DeleteFolders() private method

private DeleteFolders ( string path ) : void
path string
return void
        private void DeleteFolders(string path)
        {
            IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication();
            if (storage.DirectoryExists(path))
            {
                string[] files = storage.GetFileNames(path + "/");
                if (files.Length > 0)
                {
                    foreach (string s in files)
                    {
                        storage.DeleteFile(path + "/" + s);
                    }
                }
                string[] dics = storage.GetDirectoryNames(path + "/");
                if (dics.Length > 0)
                {
                    foreach (string s in dics)
                    {
                        DeleteFolders(path + "/" + s);
                    }
                }
                storage.DeleteDirectory(path);
            }
            storage.Dispose();
        }
		/// <summary>