For about two days I've been trying to figure out how to make a C++ program encrypt a folder under the FAT 32 type. I still can't figure out how to do this!

I can easily encrypt files though.

My file type:

Code:
>Enter file name: file.txt
>Enter output file name: file2.txt
>Sucessfully encrypted!!
but when I try a folder:
Code:
>Enter file name: foldername
>Error! File dosn't exist!
>
>Enter file name:
How can I encrypt a folder?