Script dosnt process files as expected (extraction, copy, move or link files)
<p>Ok so I've been going out of my mind trying to get my head around why this isnt processing my files. Connection with uTorrent works, creation of destination works etc</p>

<p>No error msgs either, can anyone see my fault? Also im quite new so if you see anything that might improve my litle creation please do tell :)</p>

<p>(IMHO I think the code is pretty much straight forward, but if anyone has problem understanding what it does just ask)</p>

<p>Thanks in advance!</p>

<pre><code>    # Use a text file (as database) to make sure we dont process the same file(s) over and over again
    with open('processedFiles.txt', 'a+') as processedFile:  
        for line in processedFile:
            processedFiles.append(line.split(' ')[-1].strip())
            processedFile.seek(0)
            processedFile.truncate()
            for root, dirnames, filenames in os.walk(outputDestination):

                compressedFile = re.search(rarRegex, filenames)
                mediaFile = re.search(mediaRegex, filenames)
                # Check if we processed the file before
                if compressedFile or mediaFile in line:
                    pass
                else:
                    # Check if the file is a compressed file
                    if compressedFile:
                        compressedFile = compressedFile.groupdict()
                        compressedFile['name'] = name
                        compressedFiles.append(compressedFile)
                        processedFiles.insert(1, compressedFile['name'])
                        continue
                    # Check if its a media file
                    if mediaFile:
                        mediaFile = mediaFile.groupdict()
                        mediaFile['name'] = name
                        mediaFile.append(mediaFile)
                        processedFiles.insert(1, mediaFile['name']) 
                        continue

    for i in xrange(len(processedFiles)):
       processedFile.write("%d. %s\n" %(i + 1, processedFiles[i]))

    processedFile.close()
</code></pre>
