create a static folder independent with WordPress

Use the File Manager from cPanel or use a FTP account, and easily create your folder wherever you want and then direct the user with its real path something like:

http://example.com/code/somepath/index.html

It should work. 🙂