original_string: protected function cleanupChunks(){
          foreach (scandir($this->chunksFolder) as $item){
              if ($item == "." || $item == "..")
                  continue;
  
              $path = $this->chunksFolder.DIRECTORY_SEPARATOR.$item;
  
              if (!is_dir($path))
                  continue;
  
              if (time() - filemtime($path) > $this->chunksExpireIn){
                  $this->removeDir($path);
              }
          }
      }
code: protected function cleanupChunks(){
          foreach (scandir($this->chunksFolder) as $item){
              if ($item == "." || $item == "..")
                  continue;
  
              $path = $this->chunksFolder.DIRECTORY_SEPARATOR.$item;
  
              if (!is_dir($path))
                  continue;
  
              if (time() - filemtime($path) > $this->chunksExpireIn){
                  $this->removeDir($path);
              }
          }
      }
code_tokens: protected function cleanupChunks ( ) { foreach ( scandir ( $ this -> chunksFolder ) as $ item ) { if ( $ item == "." || $ item == ".." ) continue ; $ path = $ this -> chunksFolder . DIRECTORY_SEPARATOR . $ item ; if ( ! is_dir ( $ path ) ) continue ; if ( time ( ) - filemtime ( $ path ) > $ this -> chunksExpireIn ) { $ this -> removeDir ( $ path ) ; } } }
docstring: Deletes all file parts in the chunks folder for files uploaded
  more than chunksExpireIn seconds ago
docstring_tokens: Deletes all file parts in the chunks folder for files uploaded more than chunksExpireIn seconds ago