public function deleteFiles()
    {
        if ($this->isAbsolute()) {
            if ($this->isDir()) {
                // delete files in the current directory
                return $this->deleteFilesAction($this->getPathname(), false);
            } 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 deleteFiles()
    {
        if ($this->isAbsolute()) {
            if ($this->isDir()) {
                // delete files in the current directory
                return $this->deleteFilesAction($this->getPathname(), false);
            } 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 deleteFiles ( ) { if ( $ this -> isAbsolute ( ) ) { if ( $ this -> isDir ( ) ) { // delete files in the current directory return $ this -> deleteFilesAction ( $ this -> getPathname ( ) , false ) ; } 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

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