An option to backup the file on track.save(); #113
Replies: 3 comments 5 replies
-
In my humble opinion, from an API design point of view, having that option would look really weird. Maybe you could get inspiration from what I've set up for my own testing app : Sample code (from // Create a temp copy of the given reference file
string testFileLocation = TestUtils.CopyAsTempTestFile("MP3/01 - Title Screen.mp3");
// Instanciate the Track from the temp copy
Track theTrack = new Track(testFileLocation);
// Here be some tests
// Get rid of the temp copy
if (Settings.DeleteAfterSuccess) File.Delete(testFileLocation); A simplified version of TestUtils is there : The code creates the temp copy into the project's If you test the features of an actual app by using its GUI, you may want to play with |
Beta Was this translation helpful? Give feedback.
-
Pretty please, go ahead 😄 |
Beta Was this translation helpful? Give feedback.
-
I'm following the tutorial. I want to save the modified mp3 as a new file, and I don't need to constantly restore the original file that hasn't been modified。 I'd like to be able to refer to design of Track.SaveAs(Stream stream);
Track.SaveAs(string Path); |
Beta Was this translation helpful? Give feedback.
-
I dont think this is a issue rather a discussion so i didnt create a issue.
Toying with Tags is too much pain while backing up track multiple time for testing purpose...
Would be great if track.save(bool doBackup(default false)) on each save with timestamp (track12102021.mp3) only for faster development & testing.
Do you think it is viable option for atl or atl clients do need it itself?
Beta Was this translation helpful? Give feedback.
All reactions