fix on recreating resource

add azaion-commands queue
add logs for docker run
update gitignore
This commit is contained in:
Alex Bezdieniezhnykh
2025-02-21 06:57:30 +02:00
parent 52c7ec09c6
commit 32955e4c66
5 changed files with 5 additions and 4 deletions
+1
View File
@@ -40,6 +40,7 @@ public class ResourcesService(IOptions<ResourcesConfig> resourcesConfig, ILogger
Directory.CreateDirectory(resourceFolder);
var resourcePath = Path.Combine(resourceFolder, data.FileName);
File.Delete(resourcePath);
await using var fileStream = new FileStream(resourcePath, FileMode.OpenOrCreate, FileAccess.ReadWrite);
await data.CopyToAsync(fileStream, cancellationToken);
logger.LogInformation($"Resource {data.FileName} Saved Successfully");