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.');
        }
    }
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.');
        }
    }
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.' ) ; } }
delete files of the current directory recursive

@return      bool            true if files were deleted
@throws      FileException
@throws Exception\FileFilterException
delete files of the current directory recursive