original_string: public function clean()
      {
          // Make sure the handle is close
          $this->close();
  
          $dir = dirname($this->getFile());
          if (is_dir($dir)) {
              $files = scandir($dir);
              foreach ($files as $file) {
                  if ('.' != $file && '..' != $file) {
                      $file = $dir . DIRECTORY_SEPARATOR .  $file;
                      if (is_file($file)) {
                          unlink($file);
                      }
                  }
              }
          }
          return $this;
      }
code: public function clean()
      {
          // Make sure the handle is close
          $this->close();
  
          $dir = dirname($this->getFile());
          if (is_dir($dir)) {
              $files = scandir($dir);
              foreach ($files as $file) {
                  if ('.' != $file && '..' != $file) {
                      $file = $dir . DIRECTORY_SEPARATOR .  $file;
                      if (is_file($file)) {
                          unlink($file);
                      }
                  }
              }
          }
          return $this;
      }
code_tokens: public function clean ( ) { // Make sure the handle is close $ this -> close ( ) ; $ dir = dirname ( $ this -> getFile ( ) ) ; if ( is_dir ( $ dir ) ) { $ files = scandir ( $ dir ) ; foreach ( $ files as $ file ) { if ( '.' != $ file && '..' != $ file ) { $ file = $ dir . DIRECTORY_SEPARATOR . $ file ; if ( is_file ( $ file ) ) { unlink ( $ file ) ; } } } } return $ this ; }
docstring: Clear up all log file
  
  @return Logger
docstring_tokens: Clear up all log file