GetFilesWithExentionFromFolders() 개인적인 정적인 메소드

private static GetFilesWithExentionFromFolders ( List folderPaths, string fileExtensionWithoutDot ) : List
folderPaths List
fileExtensionWithoutDot string
리턴 List
        public static List <string> GetAvailableFilesWithExtensionOnTheHDD(PresetFileLocation fileLocation, string fileExtensionWithoutDot)
        {
            List <string> exentionFromFolders = PresetLibraryLocations.GetFilesWithExentionFromFolders(PresetLibraryLocations.GetDirectoryPaths(fileLocation), fileExtensionWithoutDot);

            for (int index = 0; index < exentionFromFolders.Count; ++index)
            {
                exentionFromFolders[index] = PresetLibraryLocations.ConvertToUnitySeperators(exentionFromFolders[index]);
            }
            return(exentionFromFolders);
        }
예제 #2
0
        public static List <string> GetAvailableFilesWithExtensionOnTheHDD(PresetFileLocation fileLocation, string fileExtensionWithoutDot)
        {
            List <string> directoryPaths = PresetLibraryLocations.GetDirectoryPaths(fileLocation);
            List <string> filesWithExentionFromFolders = PresetLibraryLocations.GetFilesWithExentionFromFolders(directoryPaths, fileExtensionWithoutDot);

            for (int i = 0; i < filesWithExentionFromFolders.Count; i++)
            {
                filesWithExentionFromFolders[i] = PresetLibraryLocations.ConvertToUnitySeperators(filesWithExentionFromFolders[i]);
            }
            return(filesWithExentionFromFolders);
        }