original_string: public function deleteAllFiles()
      {
          if ($this->isAbsolute()) {
              if ($this->isDir()) {
                  // delete files in the current directory and it's subdirectories
                  return $this->deleteFilesAction($this->getPathname(), true);
              } else {
                  throw new FileException('Given path is a file and not a directory.');
              }
          } else {
              throw new FileException('Given file path is not a absolute path.');
          }
      }
code: public function deleteAllFiles()
      {
          if ($this->isAbsolute()) {
              if ($this->isDir()) {
                  // delete files in the current directory and it's subdirectories
                  return $this->deleteFilesAction($this->getPathname(), true);
              } else {
                  throw new FileException('Given path is a file and not a directory.');
              }
          } else {
              throw new FileException('Given file path is not a absolute path.');
          }
      }
code_tokens: public function deleteAllFiles ( ) { if ( $ this -> isAbsolute ( ) ) { if ( $ this -> isDir ( ) ) { // delete files in the current directory and it's subdirectories return $ this -> deleteFilesAction ( $ this -> getPathname ( ) , true ) ; } else { throw new FileException ( 'Given path is a file and not a directory.' ) ; } } else { throw new FileException ( 'Given file path is not a absolute path.' ) ; } }
docstring: delete files of the current directory recursive
  
  @return      bool            true if files were deleted
  @throws      FileException
  @throws Exception\FileFilterException
docstring_tokens: delete files of the current directory recursive