when i render my site, the first time, i get an index.html file in each folder. but subsequent times, the file will be called index(1).html, index(2), etc…. and the previous files are not being replaced.
That naming convention is used by many Windows programs (edge, explorer) when you try to copy a file to a target folder and there’s already a file there with the same name.
I have never seen Hugo itself to behave like that… It either overwrites/recreates the file or complains about permissions.
My educated guess is, that you have something around the Hugo build that produces that behavior.