C++ Filesystem manipulation
Ok, it seems that filesystem manipulation is very hard using C++ when trying to avoid dependencies.
Anyway, my goal is to write a function similar to "rm -r <path>"..
And please: do not suggest using system().
I've managed to open a directory and read the content using opendir() and readdir() from dirent.h. Now, I just want to check if the file <filename> is of type 'file' or 'directory'.
Is there a way to do this easily?
|