yes, it compiles and works ok, but this:
if( (s_current.compare(struct_filedata.name) && s_parrent.compare(struct_filedata.name)) )
{
s_filename = p_sPath + "\\" + struct_filedata.name;
cout << "Subdir found: " << s_filename << endl;
MakeList(s_filename);
}
else
{
cout << "Dir found: " << struct_filedata.name << endl;
}
Should display:
Dir found: .
Dir found: ..
for every directory. It only does it for "..". Why is that?
And I had to declare additional strings and use
string.compare(...) because
strcmp() takes no
struct_filedata.name as parameter.