[vcpkg] Skip all files named .DS_Store, no need to check if the file is regular (#13669)

This commit is contained in:
ras0219 2020-09-27 17:30:59 -07:00 committed by GitHub
parent a989880479
commit ae82a554f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,9 +354,8 @@ namespace vcpkg::Paragraphs
Util::sort(port_dirs); Util::sort(port_dirs);
// TODO: search in `b-` for ports starting with `b` // TODO: search in `b-` for ports starting with `b`
Util::erase_remove_if(port_dirs, [&](auto&& port_dir_entry) { Util::erase_remove_if(port_dirs,
return fs.is_regular_file(port_dir_entry) && port_dir_entry.filename() == ".DS_Store"; [&](auto&& port_dir_entry) { return port_dir_entry.filename() == ".DS_Store"; });
});
for (auto&& path : port_dirs) for (auto&& path : port_dirs)
{ {