public function delete() {
		foreach ($this as $file) {
			if (!$file->isDot()) {
				$file->delete();
			}
		}

		if (!@rmdir($this->pathname)) {
			throw new FileException(sprintf('Failed to delete directory "%s"', $this->pathname));
		}
	}
public function delete() {
		foreach ($this as $file) {
			if (!$file->isDot()) {
				$file->delete();
			}
		}

		if (!@rmdir($this->pathname)) {
			throw new FileException(sprintf('Failed to delete directory "%s"', $this->pathname));
		}
	}
public function delete ( ) { foreach ( $ this as $ file ) { if ( ! $ file -> isDot ( ) ) { $ file -> delete ( ) ; } } if ( ! @ rmdir ( $ this -> pathname ) ) { throw new FileException ( sprintf ( 'Failed to delete directory "%s"' , $ this -> pathname ) ) ; } }
Recursively deletes the directory

@throws FileException when something goes wrong
Recursively deletes the directory