Added CSV Import and Export

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-19 20:37:13 -07:00
parent 60edb65b55
commit d8249c7163
11 changed files with 93 additions and 15 deletions

View File

@@ -68,7 +68,7 @@ namespace CarCareTracker.Helper
var filesToUpload = Directory.GetFiles(imagePath);
foreach(string file in filesToUpload)
{
File.Copy(file, $"{existingPath}/{Path.GetFileName(file)}");
File.Copy(file, $"{existingPath}/{Path.GetFileName(file)}", true);
}
}
if (Directory.Exists(documentPath))
@@ -82,7 +82,7 @@ namespace CarCareTracker.Helper
var filesToUpload = Directory.GetFiles(documentPath);
foreach (string file in filesToUpload)
{
File.Copy(file, $"{existingPath}/{Path.GetFileName(file)}");
File.Copy(file, $"{existingPath}/{Path.GetFileName(file)}", true);
}
}
if (File.Exists(dataPath))