RuudBurger/CouchPotatoServer — pull request #778 by Royal2000H (2012-08-31 08:18:32+00:00)
Title: Add Permission Fix after Renaming for Windows users

NEEDS ADDITIONAL WORK:

Unix CouchPotato users benefit from a customizable CHMOD after renaming (moving).

Windows users have no such luck, and this causes problems for those whose destination folders are shared (on the network or with another user on the same machine).

For example, if your usenet downloader downloads to folder A (which is private), but CouchPotato moves the movie to folder B (which is shared), the movie will remain private while in the shared folder and will NOT be shared.

But here's a hacky fix! After the chmod command in root-CouchPotatoServer-directory\couchpotato\core\plugins\renamer\main.py
Add the following line:
os.popen('icacls "' + dest + '"* /reset /T')

I made a pull request but you would still need to make it play nicely with UNIX users. Also maybe a checkbox in settings ("Inherit permissions from destination folder?").

But I hope you consider including this in near releases!

Related forum thread: http://couchpota.to/forum/showthread.php?tid=623