Hello all
im looking for away to get all files names and there properties ( read write executable and so on ) but cross platform
is there any good small library that doing that ? if not how can i do it in most effective way ?
thanks
Printable View
Hello all
im looking for away to get all files names and there properties ( read write executable and so on ) but cross platform
is there any good small library that doing that ? if not how can i do it in most effective way ?
thanks
I recently used boost filesystem. You could try it out. Here is a sample to do something like the "ls" command on unix. Link - http://www.boost.org/doc/libs/1_35_0.../simple_ls.cpp
You would need to enhance it to loop recursively if it is a directory. Could use recursion or just iteration.
To get the file proporties, it might be not possible for a portable library but try searching through the documentation about what all stats can it give you for a file.