public static string[] ListForType <T>(string mask = "*.cfg", bool subdirs = false) { string dir = IO.File <T> .Save.FullPathName(false, "."); string[] files = ReadableConfigNode.ListFiles(dir, mask, subdirs); return(files); }
public static string[] ListForType <T>(string mask = "*.cfg", bool subdirs = false) { string dir = IO.File <T> .Temp.FullPathName("."); try { string[] files = ReadableConfigNode.ListFiles(dir, mask, subdirs); return(files); } catch (SIO.FileNotFoundException) { return(new string[0]); } }