'Deletes all the content from the given directory.
Deletes both files and sub-directories, but the specified directory
itself if not removed. Use `Remove Directory` if you want to remove
the whole directory.'

def empty_directory(self, path):

    path = self._absnorm(path)
    for item in self._list_dir(path, absolute=True):
        if os.path.isdir(item):
            shutil.rmtree(item)
        else:
            os.remove(item)
    self._link("Emptied    directory    '%s'.", path)
