RuudBurger/CouchPotatoServer — pull request #679 by chris-sanders (2012-08-05 06:36:43+00:00)
Title: Handle permission error in shutil.move for *nix systems during the renam...

...e plugin.

shutil.move automatically calls shutil.copystat after moving a file. On a *nix system copystat tries to update file permissions of the new file. If the destination has an NTFS file system the chmod will fail with a simple permission error. This commit checks for this specific condition and if the destination file exists supresses the error and deletes the original file.