Changed the default value of path member to "".
Enhanced to delete a directory.