I created a new folder inside /sdcard/ and something went wrong with it since other 600 sub-folders (one inside the other) were created as well. I noticed the problem when trying to rename the 'main' folder, as it returned a "folder not found" error.
I know the number of sub-folders because I checked the properties of the main folders. There are also 160 files which I did not place there and I haven't checked what they are.
My phone is rooted and for the operation I used the CM built-in file manager. I've been trying deleting the folders both via UI and through the shell but nothing works. If I run
rm -r /sdcard/<myfolder>/
It returns "folder not empty". I've also tried the
option but nothing changes. Rebooting didn't solve the issue.
I hope it's not about a corrupted partition...