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.');
        }
    }