[#BloombergLP-bdls-FilesystemUtil-FileOpenPolicy]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::FileOpenPolicy
:relfileprefix: ../../../
:mrdocs:

Enumeration used to determine whether &apos;open&apos; should open an existing file, or create a new file&period;

== Synopsis

Declared in `&lt;bdls&lowbar;filesystemutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum FileOpenPolicy;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `e&lowbar;OPEN` 
| Open a file if it exists, and fail otherwise&period;
| `e&lowbar;CREATE` 
| Create a new file, and fail if the file already
| `e&lowbar;CREATE&lowbar;PRIVATE` 
| Create a new file with access restricted to the
| `e&lowbar;OPEN&lowbar;OR&lowbar;CREATE` 
| Open a file if it exists, and create a new file
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
