public void WriteTo(CmdParser parser) { var fullPath = parser.GetAttribute("name") ?? parser.GetAttribute(0); var outFilePath = parser.GetAttribute("out") ?? parser.GetAttribute(1); //var parent = parser.GetAttribute("parent") ?? parser.GetAttribute(2) ?? "/"; if (fullPath.Substring(0, 1).Equals(":")) { var id = fullPath.TrimStart(':').ToInt(); //fileManager.WriteToFile(id, outFilePath); fileManager.WriteToFile(id, outFilePath); } else { fileManager.WriteToFile(fullPath, outFilePath); //fileManager.WriteToFile(fullPath, outFilePath); } }