My stat implementation on Windows apparently treats this situation as
"file not found", so I did not notice it until now.
for(const string &f: list_files(p))
{
FS::Path full = p/f;
- FS::Stat st = FS::stat(full/"Build");
- if(st && st.get_type()!=FS::DIRECTORY)
+ if(FS::is_dir(full))
{
- pkg_dirs.push_back(full);
- ++count;
+ FS::Stat st = FS::stat(full/"Build");
+ if(st && st.get_type()!=FS::DIRECTORY)
+ {
+ pkg_dirs.push_back(full);
+ ++count;
+ }
}
}