From: Jurko GospodnetiÄ (jurko.gospodnetic_at_[hidden])
Date: 2008-02-11 19:15:04
> Hi, it looks like path.exists keeps file information cached, the
> following example proves it. Is there any way to refresh the
> information (clear cache) after creating the directory?
The path.exists rule you called depends on Boost Jam's built-in
globbing support (builtin.c) and that in turn uses Boost Jam's file
binding (timestamp.c) which caches all information about all files it
detects on the system as a performance optimization.
So the direct answer would be - no, as far as I know.
Perhaps you could tell us more about what you're tring to achieve and
we could find a different solution?
I do not see why you would want to create or delete files or folders
in the initial Boost Jam script scanning phase. Such modifications
should be made using actions and executed the same as any other build
action. I believe that was the reason why such caching was deemed OK in
the first place.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk