I've been working on a file manager/mp3 manager for the last week.
Now that my user interface and some minor functions are completed I just need to code the delete and copy functions.
Delete function went well, I used the unlink and rmdir function but for the copying of the files I am wondering if there would be a command to copy the whole lot.
Currently I would copy a folder and all it's contents by reading all the files and when I encounter a file I would open it as binary and write it to the destination folder as binary too.
When I would encounter a directory I woul add it in the destinationdirectory with the mkdir and read it's contents recursively til the directory is copied.
So my question is: Is there any easier/better way to do the copying?
I am currently using a Windows machine (and a NTFS file system) so windows.h is included.