[TASK] Do not generate new processed file if it already exists
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / ProcessedFile.php
index 77915f0..cbf3312 100644 (file)
@@ -113,6 +113,7 @@ class ProcessedFile extends AbstractFile {
         */
        public function __construct(File $originalFile, $taskType, array $processingConfiguration, array $databaseRow = NULL) {
                $this->originalFile = $originalFile;
+               $this->originalFileSha1 = $this->originalFile->getSha1();
                $this->storage = $originalFile->getStorage()->getProcessingFolder()->getStorage();
                $this->taskType = $taskType;
                $this->processingConfiguration = $processingConfiguration;