private function setFilesMtime()
  {
    $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->myWorkDirName,
                                                                          FilesystemIterator::UNIX_PATHS));
    foreach ($files as $full_path => $file)
    {
      if ($file->isFile())
      {
        $key = substr($full_path, strlen($this->myWorkDirName.'/'));
        if (isset($this->myLastCommitTimes[$key]))
        {
          $this->logVerbose("Set mtime of %s to %s", $full_path, date('Y-m-d H:i:s', $this->myLastCommitTimes[$key]));
          $success = touch($full_path, $this->myLastCommitTimes[$key]);
          if (!$success)
          {
            $this->logError("Unable to set mtime of file %s", $full_path);
          }

          $this->myCount++;
        }
      }
    }
  }
private function setFilesMtime()
  {
    $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->myWorkDirName,
                                                                          FilesystemIterator::UNIX_PATHS));
    foreach ($files as $full_path => $file)
    {
      if ($file->isFile())
      {
        $key = substr($full_path, strlen($this->myWorkDirName.'/'));
        if (isset($this->myLastCommitTimes[$key]))
        {
          $this->logVerbose("Set mtime of %s to %s", $full_path, date('Y-m-d H:i:s', $this->myLastCommitTimes[$key]));
          $success = touch($full_path, $this->myLastCommitTimes[$key]);
          if (!$success)
          {
            $this->logError("Unable to set mtime of file %s", $full_path);
          }

          $this->myCount++;
        }
      }
    }
  }
private function setFilesMtime ( ) { $ files = new RecursiveIteratorIterator ( new RecursiveDirectoryIterator ( $ this -> myWorkDirName , FilesystemIterator :: UNIX_PATHS ) ) ; foreach ( $ files as $ full_path => $ file ) { if ( $ file -> isFile ( ) ) { $ key = substr ( $ full_path , strlen ( $ this -> myWorkDirName . '/' ) ) ; if ( isset ( $ this -> myLastCommitTimes [ $ key ] ) ) { $ this -> logVerbose ( "Set mtime of %s to %s" , $ full_path , date ( 'Y-m-d H:i:s' , $ this -> myLastCommitTimes [ $ key ] ) ) ; $ success = touch ( $ full_path , $ this -> myLastCommitTimes [ $ key ] ) ; if ( ! $ success ) { $ this -> logError ( "Unable to set mtime of file %s" , $ full_path ) ; } $ this -> myCount ++ ; } } } }
Set last commit time to all files in build directory.
Set last commit time to all files in build directory .