Skip to content

Commit

Permalink
Use unique name with timestamp instead of subdirectory for legacy upload
Browse files Browse the repository at this point in the history
This prevents issues with Arma 3 not being able to load scenarios.
  • Loading branch information
veteran29 committed May 10, 2020
1 parent 7e529e7 commit dbf4082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Command/Upload/UploadCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ protected async Task SteamRemoteStorageUpload()
}

var fileName = (new FileInfo(Path)).Name;
var tempPath = NormalizePath($"kp-steam-tmp/{fileName}");
var timestamp = DateTime.Now.ToString("yyyyMMddHHmmssffff");
var tempPath = NormalizePath($"kp_steam_cli_{timestamp}_{fileName}");
var fileContent = File.ReadAllBytes(Path);

Logger.LogDebug($"Copying file to temp path \"{tempPath}\"");
Expand Down

0 comments on commit dbf4082

Please sign in to comment.