Deleting 'infinite' recursive directory 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/&lt;myfolder&gt;/


It returns "folder not empty". 
I've also tried the 

-rf


option but nothing changes. 
Rebooting didn't solve the issue. 

I hope it's not about a corrupted partition... 

Any suggestions?
Issue resolved by running rm -r from the Custom Recovery cmd. 

I'll create the folder again and see if the problem reoccurs, hopefully it was just a 'random' glitch. 
(I should probably mention that I use a nightly version of CM12.1, not a stable ROM).