Unable to handle subfolders in Termux
It's likely that the permission or owner has messed up.

Go find a folder where Termux operates normally, and run ls -ln to get the UID and GID of Termux (they should be the same, on the 3rd and 4th column of ls -ln). Then switch to root with su or tsu and change the owner of the problematic directory to Termux like this:

chown -R 10001.10001 path/to/dir


where 10001 should be replaced with the UID of Termux. Then you should be good to go.