#93: Making some changes to the process of saving a song to the filesystem

This commit is contained in:
kdeng00
2024-07-18 15:59:51 -04:00
parent c592b6dfa5
commit 08a76007b7
+6 -3
View File
@@ -224,10 +224,13 @@ public class SongManager : BaseManager
_logger.Info("Temporary song path: {0}", tempPath); _logger.Info("Temporary song path: {0}", tempPath);
using (var filestream = new FileStream(tempPath, FileMode.Create)) if (!System.IO.File.Exists(tempPath))
{ {
_logger.Info("Saving song to temporary directory"); using (var filestream = new FileStream(tempPath, FileMode.Create))
songFile.CopyTo(filestream); {
_logger.Info("Saving song to temporary directory");
songFile.CopyTo(filestream);
}
} }
var coverMgr = new CoverArtManager(_config); var coverMgr = new CoverArtManager(_config);