#93: Making some changes to the process of saving a song to the filesystem
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user