|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-08-03 20:15:24
Thomas Witt <witt_at_[hidden]> writes:
> I'de like to get away from create. As I understand it, what we really
> want is to make sure a directory path actually exists without
> necessarily creating any directories. To me calling a create function
> for something that already exists should be an error. I can't see a
> reasonable way to have these semantics with create_directories.
>
> What about something like this:
>
> ensure_path_exists(path);
I have a word I use in scenarios like this: "demand".
demand_directory(path)
"Demand" is not a perfect fit, but if you treat it like a term of
art, it works.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk