Ejemplo n.º 1
0
 private function fileExecutor($filePath, $type, $actionType)
 {
     if ($actionType === $this->ACTION_PROCESS) {
         $fileinfo = new FileInfo($filePath);
         $fileinfoNode = $fileinfo->getXMLNode();
         if ($this->GENERATE_FILE_QUEUE && is_file($fileinfo->absoluteName)) {
             $queue_entry = $fileinfo->absoluteName . ' ' . $fileinfo->md5 . PHP_EOL;
             file_put_contents2($this->tmpQueueFilename, $queue_entry, 'a');
         }
         $this->dom->documentElement->appendChild($this->dom->importNode($fileinfoNode, true));
         $this->filesFound++;
     } else {
         if ($actionType === $this->ACTION_SKIP) {
             // TODO: Do something with skipped item
             // fputs($file_handle, "* SKIPPED *************************************** " . $file_path);
         }
     }
 }