I have a QFileSystemModel and can delete empty directory with QFileSystemModel.rmdir(index).
Is there a way to delete non-empty directory with Pyside2?
I can shutil.rmtree() delete non-empty directory, but since I use Qt, I tend to use the Qt method. if it existed.
question from:https://stackoverflow.com/questions/66060374/how-to-delete-an-entire-directory-with-pyside2