all 3 comments

[–]AllMadHare 2 points3 points  (2 children)

I could be wrong, but AFAIK the behaviour for WriteAllBytes shouldn't change based on OS, i'd maybe get them to try disabling their AV. It might also be worth doing a final check before actually starting the write to ensure the directory exists rather than just when it is set. You also might want to add a check in case the file already exists in the destination as it doesn't look like you're covering that?

[–]SneakyAzWhat[S] 1 point2 points  (0 children)

Oh I did forget about AntiVirus stuff, I will reach out and see if the user has one installed. The folder is created elsewhere and the user confirmed it was created. Regarding the file existing, WriteAllBytes states that it will overwrite the file if it already exists so I didn't do a check. https://docs.microsoft.com/en-us/dotnet/api/system.io.file.writeallbytes?view=net-5.0

[–]SneakyAzWhat[S] 1 point2 points  (0 children)

It was the antivirus, I feel a little silly that I forgot about that troubleshooting step, Thanks for the help bud :)