/// <summary> /// Saves this <see cref="FileEntryGraph"/> to the specified file. /// </summary> /// <param name="file">The file that this graph will be saved to.</param> public void Save(LessIO.Path file) { //save it as csv: if (file.Exists) LessIO.FileSystem.RemoveFile(file); using (var f = file.CreateText()) { f.WriteLine("Path,Size,CreationTime,LastWriteTime,Attributes"); foreach (var e in this.Entries) { f.Write(e.Path); f.Write(","); f.Write(e.Size); f.Write(","); f.Write(SerializeDate(e.CreationTime)); f.Write(","); f.Write(SerializeDate(e.LastWriteTime)); f.Write(","); f.Write(SerializeAttributes(e.Attributes)); f.WriteLine(); } } }