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); }
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); }