CORE-23734: Refactoring
This commit is contained in:
@@ -8,14 +8,6 @@ using TagLib.Mpeg4;
|
||||
namespace Icarus.Controllers.Managers;
|
||||
|
||||
|
||||
public enum CreateFileResult
|
||||
{
|
||||
Unknown = 0,
|
||||
AlreadyExists = 1,
|
||||
FileCreatedAndExists = 2
|
||||
}
|
||||
|
||||
|
||||
public class SongManager : BaseManager
|
||||
{
|
||||
#region Fields
|
||||
@@ -377,7 +369,7 @@ public class SongManager : BaseManager
|
||||
}
|
||||
|
||||
|
||||
public CreateFileResult Create(IFormFile file, string filePath, string prompt)
|
||||
public Icarus.Models.CreateFileResult Create(IFormFile file, string filePath, string prompt)
|
||||
{
|
||||
if (System.IO.File.Exists(filePath))
|
||||
{
|
||||
|
||||
@@ -6,6 +6,6 @@ namespace Icarus.Models;
|
||||
public enum CreateFileResult
|
||||
{
|
||||
Unknwon = 0,
|
||||
AlreadyExists = 1,
|
||||
FileCreatedAndExists = 2
|
||||
AlreadyExists = 1,
|
||||
FileCreatedAndExists = 2
|
||||
}
|
||||
+1
-1
@@ -80,7 +80,7 @@ public class Song
|
||||
{
|
||||
var fullPath = SongDirectory;
|
||||
|
||||
if (fullPath![fullPath.Length -1] != '/')
|
||||
if (fullPath![fullPath.Length - 1] != '/')
|
||||
{
|
||||
fullPath += "/";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user