예제 #1
0
        public static void SortScriptsAsPerFolder()
        {
            scriptsDict = new Dictionary <string, List <string> >();

            files = FindFiles.FindAllFiles("cs");

            for (int i = 0; i < files.Length; i++)
            {
                foldersList = new List <string>();
                string[] folders = files[i].Split('/');
                for (int j = 0; j < folders.Length - 1; j++)
                {
                    foldersList.Add(folders[j]);
                }

                scriptsDict.Add(folders[folders.Length - 1], foldersList);
            }
        }