hotfix: directory init fixes & installer file naming system

This commit is contained in:
2026-03-11 22:08:15 +01:00
parent 74fddcdb9d
commit ff101bf569
3 changed files with 7 additions and 7 deletions

View File

@@ -218,7 +218,7 @@ namespace CarManagerV3
Car other = cars.Where(c => c.Order < order).OrderByDescending(c => c.Order).FirstOrDefault();
if (other != null)
{
Console.WriteLine($"Swapping order of {car.ToString()} ({car.Order}) and {other.ToString()} ({other.Order})");
System.Diagnostics.Debug.WriteLine($"Swapping order of {car.ToString()} ({car.Order}) and {other.ToString()} ({other.Order})");
int temp = car.Order;
car.Order = other.Order;
other.Order = temp;
@@ -235,7 +235,7 @@ namespace CarManagerV3
Car other = cars.Where(c => c.Order > order).OrderBy(c => c.Order).FirstOrDefault();
if (other != null)
{
Console.WriteLine($"Swapping order of {car.ToString()} ({car.Order}) and {other.ToString()} ({other.Order})");
System.Diagnostics.Debug.WriteLine($"Swapping order of {car.ToString()} ({car.Order}) and {other.ToString()} ({other.Order})");
int temp = car.Order;
car.Order = other.Order;
other.Order = temp;

View File

@@ -50,11 +50,11 @@ namespace CarManagerV3
{
try
{
//string directory = Path.GetDirectoryName(path);
string directory = Path.GetDirectoryName(path);
Console.WriteLine($"Initializing file and folders for path: {path}");
if (!Directory.Exists(path))
if (!Directory.Exists(directory))
{
Directory.CreateDirectory(path);
Directory.CreateDirectory(directory);
}
if(!folderOnly) InitializeFile(path);
}