diff options
Diffstat (limited to 'tests/utils/test6.cpp')
-rwxr-xr-x | tests/utils/test6.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/utils/test6.cpp b/tests/utils/test6.cpp new file mode 100755 index 0000000..839f69b --- /dev/null +++ b/tests/utils/test6.cpp @@ -0,0 +1,20 @@ +#include "FileUtils.hpp" + +#include <iostream> +#include <algorithm> + +using namespace std; + +int main( void ) +{ + vector<string> entries = directory_entries( "test6.DATA", true, true ); + + sort( entries.begin( ), entries.end( ) ); + + vector<string>::const_iterator it, end = entries.end( ); + for( it = entries.begin( ); it != end; it++ ) { + cout << (*it) << endl; + } + + return 0; +} |