So, I stumbled across a little problem, I can't seem to figure out. I have a NAS where I dump data on and a script to download files I need back to my PC. While doing so, it creates a folder for the file. After that, I run a different script that encodes the video files to save some space. However, for some reason, the files and folders keep getting a 'read-only' lock that prevents the source file to be deleted after compression. So I have to get into each individual folder and remove the read-only permission.
Is there some way to disable the read-only lock? The Owner if the Root folder is my personal account, with full access. Changing it to SYSTEM or Admin with full access doesn't change anything.