Keep only existing file paths from list in boost build/b2/jam

35 Views Asked by At

If I have a variable containing a list of file paths that may or may not exists, how can I filter-out the files that do not exists ?

1

There are 1 best solutions below

0
Gabriel Devillers On

You can use the glob rule from path

link to documentation

example:

import path ;
local CANDIDATE_FILES = a.cpp b.cpp ;
local EXISTING_FILES = [ glob $(CANDIDATE_FILES) ] ;