private void UpdateFiles() { Files.Clear(); List <string> list = FileOperateHelper.GetFiles(AppDomain.CurrentDomain.BaseDirectory + "\\data", "*.txt"); list.ForEach(x => Files.Add(new File() { Path = x, Name = System.IO.Path.GetFileNameWithoutExtension(x) })); }
private static List <ProjectFileInformation> GetPlugInFilesInformation(string projectGroupPath, string projectFilePath) { string plugInFolderPath = System.IO.Path.Combine(Application.dataPath, PLUG_IN_FOLDER_RELATIVE_PATH); List <string> plugInFiles = FileOperateHelper.GetFiles(plugInFolderPath, new List <string>() { ".h", ".m" }); FileOperateHelper.CopyFiles(plugInFiles, plugInFolderPath, projectGroupPath); List <ProjectFileInformation> files = new List <ProjectFileInformation>(); foreach (string filePath in plugInFiles) { ProjectFileInformation information = new ProjectFileInformation(); information.FileName = System.IO.Path.GetFileName(filePath); information.FilePath = filePath; information.FileType = ProjectFileType.Source; } return(files); //XcodeModifyHelper.ModifyXcodeProject(plugInFiles, projectFilePath, ProjectFileType.Source); }