#103: Remove WAV support #105

Merged
kdeng00 merged 12 commits from tsk-103 into master 2025-02-16 17:24:50 -05:00
Showing only changes of commit f2c1e7cb66 - Show all commits
+5 -4
View File
@@ -366,11 +366,12 @@ public class SongManager : BaseManager
return song;
}
public int Create(IFormFile file, string filePath, string prompt)
public CreateFileResult Create(IFormFile file, string filePath, string prompt)
{
if (System.IO.File.Exists(filePath))
{
return 1;
return CreateFileResult.AlreadyExists;
}
using (var filestream = new FileStream(filePath, FileMode.Create))
@@ -380,7 +381,7 @@ public class SongManager : BaseManager
if (System.IO.File.Exists(filePath))
{
return 2;
return CreateFileResult.FileCreatedAndExists;
}
}
@@ -461,7 +462,7 @@ public class SongManager : BaseManager
DeleteEmptyDirectories(ref song, ref song);
}
catch(Exception ex)
catch (Exception ex)
{
var msg = ex.Message;
_logger.Error(msg, "An error occurred when attempting to delete the song from the filesystem");