My user folder is inside a random folder

Somehow I got the following file structure in ~/

~
└── todo_app
    └── ~

I really don't know how this hapenned and how to solve it.

cd ~ just goes to ~ and not ~/todo_app/~.


Solution 1:

I was brave enought to sudo rm -rf ~/todo_app/~ and it worked without deleting my home folder.

Thanks