How does this method work? I can’t seem to delete a folder. Does the folder have to be completely empty, including the “.” and “…”?

My path does have a space in it:

C:/Users/Kerry/AppData/Local/psf2019/images/fantasy 1


in windows, FileUtils not support removeDirectory.
view CCFileUtils.cpp->FileUtils::removeDirectory(const std::string& path)

if you want to remove directory,
can use RemoveDirectory or rmdir.
but this function only remove empty folder.


ah, thanks!!