Added the ability to chmod Torrent diretory before processing

This commit is contained in:
Hagai Cohen 2015-09-24 17:29:56 +03:00
commit ab4d02a240
3 changed files with 19 additions and 1 deletions

View file

@ -197,6 +197,9 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
logger.info("Calling %s:%s to post-process:%s" % (sectionName, usercat, inputName))
if core.TORRENT_CHMOD_DIRECTORY:
core.rchmod(outputDestination, core.TORRENT_CHMOD_DIRECTORY)
result = [ 0, "" ]
if sectionName == 'UserScript':
result = external_script(outputDestination, inputName, inputCategory, section[usercat])