Beispiel #1
0
        public void Save(string save = null)
        {
            StreamWriter sw = new StreamWriter(save ?? _filePath);

            foreach (var currentItem in _rootDirectoryNode.GetAllChildrenPaths())
            {
                var firstItem = FindItemWithPath(currentItem);
                if (firstItem != null)
                {
                    sw.WriteLine(firstItem.ToString());
                }
            }
            sw.Flush();
            sw.Close();
        }