File :: eraseDirectory - Erase directory
The function deletes a directory including all subordinated directories and files.
Implementation details
File  :: eraseDirectory (  )
The function erases the direcory referenced in the path of the file object. When the path does not refer to a valid directory, the function throws an exception.
In order to avoid exceptions, one may call exist() or isDirectory() before calling eraseDirectory().