BloombergLP::bdls::FilesystemUtil::FileOpenPolicy

Enumeration used to determine whether 'open' should open an existing file, or create a new file.

Synopsis

Declared in <bdls_filesystemutil.h>

enum FileOpenPolicy;

Members

NameDescription
e_OPEN Open a file if it exists, and fail otherwise.
e_CREATE Create a new file, and fail if the file already
e_CREATE_PRIVATE Create a new file with access restricted to the
e_OPEN_OR_CREATE Open a file if it exists, and create a new file