mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[vcpkg] Skip all files named .DS_Store, no need to check if the file is regular (#13669)
This commit is contained in:
parent
a989880479
commit
ae82a554f8
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user